trait BitSet extends collection.BitSet with BitSetLike[BitSet] with SortedSet[Int] with SetMonoTransforms[Int, BitSet]
- Alphabetic
- By Inheritance
- BitSet
- SortedSet
- SortedSetLike
- Set
- SetLike
- SetMonoTransforms
- Iterable
- BitSet
- BitSetLike
- BitSetMonoTransforms
- SortedSet
- SortedSetLike
- SortedPolyTransforms
- Sorted
- SortedLike
- Set
- SetLike
- Equals
- SetMonoTransforms
- Iterable
- IterableLike
- IterablePolyTransforms
- IterableMonoTransforms
- IterableOps
- FromIterable
- IterableOnce
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
&(that: collection.Set[Int]): BitSet
- Definition Classes
- SetMonoTransforms
-
abstract
def
+(elem: Int): BitSet
- Definition Classes
- SetMonoTransforms
-
abstract
def
++(that: collection.Set[Int]): BitSet
- Definition Classes
- SetMonoTransforms
-
abstract
def
-(elem: Int): BitSet
- Definition Classes
- SetMonoTransforms
-
abstract
def
^(other: collection.BitSet): BitSet
Computes the symmetric difference of this bitset and another bitset by performing a bitwise “exclusive-or”.
Computes the symmetric difference of this bitset and another bitset by performing a bitwise “exclusive-or”.
- other
the other bitset to take part in the symmetric difference.
- returns
a bitset containing those bits of this bitset or the other bitset that are not contained in both bitsets.
- Definition Classes
- BitSetMonoTransforms
-
abstract
def
contains(elem: Int): Boolean
- Definition Classes
- SetLike
-
abstract
def
fromIterable[B](coll: collection.Iterable[B]): Set[B]
- Definition Classes
- IterablePolyTransforms
-
abstract
def
fromIterableWithSameElemType(coll: collection.Iterable[Int]): Set[Int]
Create a collection of type
C[A]from the elements ofcoll, which has the same element type as this collection.Create a collection of type
C[A]from the elements ofcoll, which has the same element type as this collection. Overridden in StringOps and ArrayOps.- Attributes
- protected[this]
- Definition Classes
- IterableLike → IterableMonoTransforms
-
abstract
def
iterator(): Iterator[Int]
Iterator can be used only once
Iterator can be used only once
- Definition Classes
- IterableOnce
-
abstract
def
map(f: (Int) ⇒ Int): BitSet
Builds a new bitset by applying a function to all elements of this bitset
Builds a new bitset by applying a function to all elements of this bitset
- f
the function to apply to each element.
- returns
a new bitset resulting from applying the given function f to each element of this bitset and collecting the results
- Definition Classes
- BitSetMonoTransforms
-
abstract
def
map[B](f: (Int) ⇒ B)(implicit ordering: Ordering[B]): SortedSet[B]
- Definition Classes
- SortedPolyTransforms
-
abstract
def
range(from: Int, until: Int): SortedSet[Int]
- Definition Classes
- SortedLike
-
abstract
def
subsetOf(that: collection.Set[Int]): Boolean
- Definition Classes
- SetLike
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
++[B >: Int](xs: IterableOnce[B]): Set[B]
Concatenation
Concatenation
- Definition Classes
- IterablePolyTransforms
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canEqual(that: Any): Boolean
- Definition Classes
- SetLike → Equals
-
def
className: String
The class name of this collection.
The class name of this collection. To be used for converting to string. Collections generally print like this:
<className>(elem_1, ..., elem_n)
- Definition Classes
- IterableOps
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
coll: BitSet.this.type
The collection itself
The collection itself
- Attributes
- protected
- Definition Classes
- Iterable → IterablePolyTransforms → IterableMonoTransforms → IterableOps
-
def
copyToArray[B >: Int](xs: Array[B], start: Int = 0): xs.type
Copy all elements of this collection to array
xs, starting atstart.Copy all elements of this collection to array
xs, starting atstart.- Definition Classes
- IterableOps
-
def
drop(n: Int): BitSet
The rest of the collection without its
nfirst elements.The rest of the collection without its
nfirst elements. For linear, immutable collections this should avoid making a copy.- Definition Classes
- IterableMonoTransforms
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- SetLike → Equals → AnyRef → Any
-
def
filter(p: (Int) ⇒ Boolean): BitSet
All elements satisfying predicate
pAll elements satisfying predicate
p- Definition Classes
- IterableMonoTransforms
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatMap[B](f: (Int) ⇒ IterableOnce[B]): Set[B]
Flatmap
Flatmap
- Definition Classes
- IterablePolyTransforms
-
def
foldLeft[B](z: B)(op: (B, Int) ⇒ B): B
Fold left
Fold left
- Definition Classes
- IterableOps
-
def
foldRight[B](z: B)(op: (Int, B) ⇒ B): B
Fold right
Fold right
- Definition Classes
- IterableOps
-
def
foreach[U](f: (Int) ⇒ U): Unit
Apply
fto each element for its side effects Note: [U] parameter needed to help scalac's type inference.Apply
fto each element for its side effects Note: [U] parameter needed to help scalac's type inference.- Definition Classes
- IterableOps
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- SetLike → AnyRef → Any
-
def
head: Int
The first element of the collection.
The first element of the collection.
- Definition Classes
- IterableOps
-
def
indexWhere(p: (Int) ⇒ Boolean): Int
The index of the first element in this collection for which
pholds.The index of the first element in this collection for which
pholds.- Definition Classes
- IterableOps
-
def
isEmpty: Boolean
Is the collection empty?
Is the collection empty?
- Definition Classes
- IterableOps
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
knownSize: Int
The number of elements in this collection, if it can be cheaply computed, -1 otherwise.
The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.
- Definition Classes
- IterableOps
-
def
map[B](f: (Int) ⇒ B): Set[B]
Map
Map
- Definition Classes
- IterablePolyTransforms
-
def
mkString(sep: String): String
A string showing all elements of this collection, separated by string
sep.A string showing all elements of this collection, separated by string
sep.- Definition Classes
- IterableOps
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nonEmpty: Boolean
Is the collection not empty?
Is the collection not empty?
- Definition Classes
- IterableOps
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
ordering: Ordering[Int]
- Definition Classes
- BitSetLike → SortedLike
-
def
partition(p: (Int) ⇒ Boolean): (BitSet, BitSet)
A pair of, first, all elements that satisfy prediacte
pand, second, all elements that do not.A pair of, first, all elements that satisfy prediacte
pand, second, all elements that do not. Interesting because it splits a collection in two.The default implementation provided here needs to traverse the collection twice. Strict collections have an overridden version of
partitioninBuildable, which requires only a single traversal.- Definition Classes
- IterableMonoTransforms
-
def
size: Int
The number of elements in this collection.
The number of elements in this collection. Does not terminate for infinite collections.
- Definition Classes
- IterableOps
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tail: BitSet
The rest of the collection without its first element.
The rest of the collection without its first element.
- Definition Classes
- IterableMonoTransforms
-
def
take(n: Int): BitSet
A collection containing the first
nelements of this collection.A collection containing the first
nelements of this collection.- Definition Classes
- IterableMonoTransforms
-
def
to[C[X] <: collection.Iterable[X]](fi: FromIterable[C]): C[Int]
Given a collection factory
fifor collections of type constructorC, convert this collection to one of typeC[A].Given a collection factory
fifor collections of type constructorC, convert this collection to one of typeC[A]. Example uses:xs.to(List) xs.to(ArrayBuffer)
- Definition Classes
- IterableOps
-
def
toArray[B >: Int](implicit arg0: ClassTag[B]): Array[B]
Convert collection to array.
Convert collection to array.
- Definition Classes
- IterableOps
-
def
toString(): String
- Definition Classes
- IterableOps → Any
-
def
view: View[Int]
A view representing the elements of this collection.
A view representing the elements of this collection.
- Definition Classes
- IterableOps
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
zip[B](xs: IterableOnce[B]): Set[(Int, B)]
Zip.
Zip. Interesting because it requires to align to source collections.
- Definition Classes
- IterablePolyTransforms