Additional top-level class in compilation unit: BitSetModule.
BitSet implementation.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final long |
| Modifier and Type | Method and Description |
|---|---|
| public BitSet | add(T
The element to be added. element)Redeclares io. Add the given element to this set, if it is not already contained. |
| public BitSet | addAll(Iterable<? extends T>
The elements to be added. elements)Redeclares io. Adds all of the given elements to this set, if not already contained. |
| public default <R> SortedSet | collect(PartialFunction<? super T, ? extends R>
A function that is not necessarily defined of all elements of this traversable. partialFunction)Implements io. Collects all elements that are in the domain of the given |
| public static Collector | Returns: ABitSet Collector.Returns a |
| public default BitSet | diff(Set<? extends T>
Elements to be removed from this set. elements)Implements io. Calculates the difference between this set and another set. |
| public default BitSet | distinct()
Implements io. Returns a new version of this which contains no duplicates. |
| public BitSet | distinctBy(Comparator<? super T>
A comparator comparator)Redeclares io. Returns a new version of this which contains no duplicates. |
| public <U> BitSet | distinctBy(Function<? super T, ? extends U>
A key extractor keyExtractor)Redeclares io. Returns a new version of this which contains no duplicates. |
| public BitSet | drop(int
The number of elements to drop. n)Redeclares io. Drops the first n elements of this or all elements, if this length < n. |
| public BitSet | dropRight(int
The number of elements to drop. n)Redeclares io. Drops the last n elements of this or all elements, if this length < n. |
| public default BitSet | dropUntil(Predicate<? super T>
A condition tested subsequently for this elements. predicate)Implements io. Drops elements until the predicate holds for the current element. |
| public BitSet | dropWhile(Predicate<? super T>
A condition tested subsequently for this elements. predicate)Redeclares io. Drops elements while the predicate holds for the current element. |
| public static BitSet | |
| public static BitSet | |
| public BitSet | filter(Predicate<? super T>
A predicate predicate)Redeclares io. Returns a new traversable consisting of all elements which satisfy the given predicate. |
| public default <U> SortedSet | flatMap(Comparator<? super U>
A comparator for values of type U comparator, Function<? super T, ? extends Iterable<? extends U>> A function which maps values of type T to Iterables of values of type U mapper)Implements io. Same as |
| public default <U> SortedSet | flatMap(Function<? super T, ? extends Iterable<? extends U>>
A mapper mapper)Implements io. FlatMaps this Traversable. |
| public default <U> U | foldRight(U
A zero element to start with. zero, BiFunction<? super T, ? super U, ? extends U> A function which combines elements. f)Implements io. Folds this elements from the right, starting with |
| public <C> Map | groupBy(Function<? super T, ? extends C>
A function which classifies elements into classes classifier)Redeclares io. Groups this elements by classifying the elements. |
| public default Iterator | grouped(int
a positive block size size)Implements io. Groups this |
| public default boolean | hasDefiniteSize()
Implements io. Checks if this Traversable is known to have a finite size. |
| public BitSet | init()
Redeclares io. Dual of tail(), returning all elements except the last. |
| public default Option | initOption()
Implements io. Dual of tailOption(), returning all elements except the last as |
| public BitSet | intersect(Set<? extends T>
the set to intersect with. elements)Redeclares io. Computes the intersection between this set and another set. |
| public default boolean | Returns: falseImplements io. An |
| public default boolean | |
| public default boolean | isTraversableAgain()
Implements io. Checks if this Traversable can be repeatedly traversed. |
| public default T | |
| public default <U> SortedSet | map(Comparator<? super U>
A comparator for values of type U comparator, Function<? super T, ? extends U> A function which maps values of type T to values of type U mapper)Implements io. Same as |
| public default <U> SortedSet | map(Function<? super T, ? extends U>
A mapper. mapper)Implements io. Maps the elements of this |
| public static BitSet | |
| public static BitSet | |
| public static BitSet | |
| public static BitSet | |
| public static BitSet | Returns: A new BitSet of boolean valuesboolean values elements)Creates a BitSet from boolean values. |
| public static BitSet | Returns: A new BitSet of byte valuesbyte values elements)Creates a BitSet from byte values. |
| public static BitSet | Returns: A new BitSet of char valueschar values elements)Creates a BitSet from char values. |
| public static BitSet | Returns: A new BitSet of int valuesint values elements)Creates a BitSet from int values. |
| public static BitSet | Returns: A new BitSet of long valueslong values elements)Creates a BitSet from long values. |
| public static BitSet | Returns: A new BitSet of short valuesshort values elements)Creates a BitSet from short values. |
| public Tuple2 | partition(Predicate<? super T>
A predicate which classifies an element if it is in the first or the second traversable. predicate)Redeclares io. Creates a partition of this |
| public default BitSet | peek(Consumer<? super T>
The action that will be performed on the element(s). action)Implements io. Performs the given |
| public static BitSet | Returns: a range of int values as specified or the empty range iffrom >= toExclusivethe first number from, int the last number + 1 toExclusive)Creates a BitSet of int numbers starting from |
| public static BitSet | Returns: a range of char values as specified or the empty range iffrom >= toExclusivethe first number from, char the last number + 1 toExclusive)Creates a BitSet of char numbers starting from |
| public static BitSet | Returns: a range of long values as specified or the empty range iffrom >= toExclusivethe first number from, long the last number + 1 toExclusive)Creates a BitSet of long numbers starting from |
| public static BitSet | Returns: a range of long values as specified or the empty range iffrom >= toInclusive and step > 0 orfrom <= toInclusive and step < 0the first number from, int the last number + 1 toExclusive, int the step step)Creates a BitSet of int numbers starting from |
| public static BitSet | Returns: a range of char values as specified or the empty range iffrom >= toInclusive and step > 0 orfrom <= toInclusive and step < 0the first number from, char the last number + 1 toExclusive, int the step step)Creates a BitSet of char numbers starting from |
| public static BitSet | Returns: a range of long values as specified or the empty range iffrom >= toInclusive and step > 0 orfrom <= toInclusive and step < 0the first number from, long the last number + 1 toExclusive, long the step step)Creates a BitSet of long numbers starting from |
| public static BitSet | Returns: a range of int values as specified or the empty range iffrom > toInclusivethe first number from, int the last number toInclusive)Creates a BitSet of int numbers starting from |
| public static BitSet | Returns: a range of char values as specified or the empty range iffrom > toInclusivethe first number from, char the last number toInclusive)Creates a BitSet of char numbers starting from |
| public static BitSet | Returns: a range of long values as specified or the empty range iffrom > toInclusivethe first number from, long the last number toInclusive)Creates a BitSet of long numbers starting from |
| public static BitSet | Returns: a range of int values as specified or the empty range iffrom > toInclusive and step > 0 orfrom < toInclusive and step < 0the first number from, int the last number toInclusive, int the step step)Creates a BitSet of int numbers starting from |
| public static BitSet | Returns: a range of char values as specified or the empty range iffrom > toInclusive and step > 0 orfrom < toInclusive and step < 0the first number from, char the last number toInclusive, int the step step)Creates a BitSet of char numbers starting from |
| public static BitSet | Returns: a range of long values as specified or the empty range iffrom > toInclusive and step > 0 orfrom < toInclusive and step < 0the first number from, long the last number toInclusive, long the step step)Creates a BitSet of long numbers starting from |
| public BitSet | reject(Predicate<? super T>
A predicate predicate)Redeclares io. Returns a new traversable consisting of all elements which do not satisfy the given predicate. |
| public BitSet | remove(T
The element to be removed from this set. element)Redeclares io. Removes a specific element from this set, if present. |
| public BitSet | removeAll(Iterable<? extends T>
The elements to be removed from this set. elements)Redeclares io. Removes all of the given elements from this set, if present. |
| public default BitSet | replace(T
An element to be substituted. currentElement, T A replacement for currentElement. newElement)Implements io. Replaces the first occurrence (if exists) of the given currentElement with newElement. |
| public default BitSet | replaceAll(T
An element to be substituted. currentElement, T A replacement for currentElement. newElement)Implements io. Replaces all occurrences of the given currentElement with newElement. |
| public default BitSet | retainAll(Iterable<? extends T>
Elements to be kept. elements)Implements io. Keeps all occurrences of the given elements from this. |
| public BitSet | scan(T
neutral element for the operator op zero, BiFunction<? super T, ? super T, ? extends T> the associative operator for the scan operation)Redeclares io. Computes a prefix scan of the elements of the collection. |
| public default <U> Set | scanLeft(U
the initial value zero, BiFunction<? super U, ? super T, ? extends U> the binary operator applied to the intermediate result and the element operation)Implements io. Produces a collection containing cumulative results of applying the operator going left to right. |
| public default <U> Set | scanRight(U
the initial value zero, BiFunction<? super T, ? super U, ? extends U> the binary operator applied to the intermediate result and the element operation)Implements io. Produces a collection containing cumulative results of applying the operator going right to left. |
| public Iterator | slideBy(Function<? super T, ?>
A function which classifies elements into classes classifier)Redeclares io. Slides a non-overlapping window of a variable size over this |
| public default Iterator | sliding(int
a positive window size size)Implements io. Slides a window of a specific |
| public Iterator | sliding(int
a positive window size size, int a positive step size step)Redeclares io. Slides a window of a specific |
| public Tuple2 | span(Predicate<? super T>
A predicate. predicate)Redeclares io. Returns a tuple where the first element is the longest prefix of elements that satisfy the given
|
| public default String | stringPrefix()
Implements io. Returns the name of this Value type, which is used by toString(). |
| public static BitSet | |
| public default BitSet | tail()
Implements io. Drops the first element of a non-empty Traversable. |
| public default Option | tailOption()
Implements io. Drops the first element of a non-empty Traversable and returns an |
| public BitSet | take(int
The number of elements to take. n)Redeclares io. Takes the first n elements of this or all elements, if this length < n. |
| public BitSet | takeRight(int
The number of elements to take. n)Redeclares io. Takes the last n elements of this or all elements, if this length < n. |
| public default BitSet | takeUntil(Predicate<? super T>
A condition tested subsequently for this elements. predicate)Implements io. Takes elements until the predicate holds for the current element. |
| public BitSet | takeWhile(Predicate<? super T>
A condition tested subsequently for the contained elements. predicate)Redeclares io. Takes elements while the predicate holds for the current element. |
| public default SortedSet | toJavaSet()
Implements io. Converts this Vavr |
| public default BitSet | union(Set<? extends T>
The set to form the union with. elements)Implements io. Adds all of the elements of |
| public default <T1, T2> Tuple2 | unzip(Function<? super T, Tuple2<? extends T1, ? extends T2>>
a function which converts elements of this to pairs unzipper)Implements io. Unzips this elements by mapping this elements to pairs which are subsequently split into two distinct sets. |
| public default <T1, T2, T3> Tuple3 | unzip3(Function<? super T, Tuple3<? extends T1, ? extends T2, ? extends T3>>
a function which converts elements of this to pairs unzipper)Implements io. Unzips this elements by mapping this elements to triples which are subsequently split into three distinct sets. |
| public static BitSet. | |
| public static BitSet. | |
| public static <T extends Enum | |
| public static BitSet. | |
| public static <T> BitSet. | |
| public static BitSet. | |
| public default <U> TreeSet | zip(Iterable<? extends U>
The Iterable providing the second half of each result pair. that)Implements io. Returns a traversable formed from this traversable and another Iterable collection by combining corresponding elements in pairs. |
| public default <U> TreeSet | zipAll(Iterable<? extends U>
The Iterable providing the second half of each result pair. that, T The element to be used to fill up the result if this traversable is shorter than that. thisElem, U The element to be used to fill up the result if that is shorter than this traversable. thatElem)Implements io. Returns a traversable formed from this traversable and another Iterable by combining corresponding elements in pairs. |
| public default <U, R> TreeSet | zipWith(Iterable<? extends U>
The Iterable providing the second parameter of the mapper. that, BiFunction<? super T, ? super U, ? extends R> a mapper. mapper)Implements io. Returns a traversable formed from this traversable and another Iterable collection by mapping elements. |
| public default TreeSet | zipWithIndex()
Implements io. Zips this traversable with its indices. |
| public default <U> TreeSet | zipWithIndex(BiFunction<? super T, ? super Integer, ? extends U>
a mapper. mapper)Implements io. Zips this traversable with its indices by applying mapper provided. |