Package io.vavr.collection
Class BitSet.Builder<T>
java.lang.Object
io.vavr.collection.BitSet.Builder<T>
- Type Parameters:
T- Component type
Builder of the BitSet. Encapsulates the conversion functions for T.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns aCollectorwhich may be used in conjunction withStream.collect(java.util.stream.Collector)to obtain anArrayList.empty()Returns a new empty BitSetBuilds a new BitSet containing n copies of the same valueBuilds a new BitSet from a specific value tBuilds a new BitSet from a list of valuesBuilds a new BitSet from anIterableBuilds a new BitSet from aStreamof valuesBuilds a new BitSet tabulating a value n times
-
Field Details
-
DEFAULT
-
fromInt
-
toInt
-
-
Constructor Details
-
Builder
-
-
Method Details
-
collector
Returns aCollectorwhich may be used in conjunction withStream.collect(java.util.stream.Collector)to obtain anArrayList.- Returns:
- A
ArrayListCollector.
-
empty
Returns a new empty BitSet- Returns:
- new empty BitSet
-
of
Builds a new BitSet from a specific value t- Parameters:
t- value to build the BitSet from- Returns:
- new BitSet
-
of
Builds a new BitSet from a list of values- Parameters:
values- values to build the BitSet from- Returns:
- new BitSet
-
ofAll
Builds a new BitSet from anIterable- Parameters:
values- iterable to build the BitSet from- Returns:
- new BitSet
-
ofAll
Builds a new BitSet from aStreamof values- Parameters:
javaStream- stream of values to build the BitSet from- Returns:
- new BitSet
-
tabulate
Builds a new BitSet tabulating a value n times- Parameters:
n- number of times to tabulatef- function to tabulate- Returns:
- new BitSet
-
fill
Builds a new BitSet containing n copies of the same value- Parameters:
n- number of times to copy the values- value supplier- Returns:
- new BitSet
-