sealed abstract class FixedSizeBitSet extends BitSet with Serializable
A bit set with a given upper bound for the largest value that can be stored in the set. The upper bound is only used to create an optimal underlying representation. It has no impact on equals and/or hashcode computations. I.e., two sets with two different upper bounds which contain the same values, are equal and have the same hashcode.
Conceptually, the an array of long values is used to store the values.
- Source
- FixedSizeBitSet.scala
- Note
If values are added to the set that are larger than the specified size the behavior is undefined!
- Alphabetic
- By Inheritance
- FixedSizeBitSet
- Serializable
- BitSet
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def +=(i: Int): FixedSizeBitSet.this.type
- abstract def -=(i: Int): FixedSizeBitSet.this.type
- abstract def add(i: Int): Boolean
Adds the given value to the set if the value is not in the set and returns true; otherwise returns false.
Adds the given value to the set if the value is not in the set and returns true; otherwise returns false. That is, the value is definitively in the set afterwards.
- abstract def contains(i: Int): Boolean
- Definition Classes
- BitSet
- abstract def isEmpty: Boolean
- Definition Classes
- BitSet
- abstract def iterator: IntIterator
Iterator over the values stored in this set.
Iterator over the values stored in this set. In general, iteration over bit sets is an expensive operation and other data structures such as IntTrieSets may be reasonable alternatives.
- Definition Classes
- BitSet
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def mkString(pre: String, in: String, post: String): String
- Definition Classes
- BitSet
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- FixedSizeBitSet → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated