Class BitSetModule.BitSet2<T>
java.lang.Object
io.vavr.collection.BitSetModule.AbstractBitSet<T>
io.vavr.collection.BitSetModule.BitSet2<T>
- All Implemented Interfaces:
BitSet<T>, Foldable<T>, Ordered<T>, Set<T>, SortedSet<T>, Traversable<T>, Function1<T,Boolean>, Value<T>, Serializable, Iterable<T>, Function<T, Boolean>
- Enclosing interface:
BitSetModule
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface BitSet
BitSet.Builder<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longprivate final longprivate final intprivate static final longFields inherited from class BitSetModule.AbstractBitSet
fromInt, toInt -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a new set containing all elements of this set plus the given element, if it was not already present.(package private) long[]copyExpand(int wordsNum) (package private) longgetWord(int index) (package private) inthead()Returns the first element of this non-emptyTraversable.intlength()Returns the number of elements in this Traversable.Methods inherited from class BitSetModule.AbstractBitSet
addAll, addElement, comparator, contains, createEmpty, createFromAll, distinctBy, distinctBy, drop, dropRight, dropWhile, equals, filter, fromBitMaskNoCopy, groupBy, hashCode, init, intersect, iterator, orElse, orElse, partition, reject, remove, removeAll, scan, shrink, slideBy, sliding, span, take, takeRight, takeWhile, toStringMethods inherited from interface BitSet
collect, diff, distinct, dropUntil, flatMap, flatMap, foldRight, grouped, hasDefiniteSize, initOption, isAsync, isLazy, isTraversableAgain, last, map, map, mapTo, mapToVoid, peek, replace, replaceAll, retainAll, scanLeft, scanRight, sliding, stringPrefix, tail, tailOption, takeUntil, toJavaSet, union, unzip, unzip3, zip, zipAll, zipWith, zipWithIndex, zipWithIndexMethods inherited from interface Foldable
fold, reduce, reduceOptionMethods inherited from interface Function1
andThen, arity, compose, compose1, curried, isMemoized, memoized, partial, reversed, tupledMethods inherited from interface Set
apply, isDistinctMethods inherited from interface Traversable
arrangeBy, average, containsAll, count, existsUnique, find, findLast, foldLeft, forEachWithIndex, get, headOption, isEmpty, isSequential, isSingleValued, lastOption, max, maxBy, maxBy, min, minBy, minBy, mkCharSeq, mkCharSeq, mkCharSeq, mkString, mkString, mkString, nonEmpty, product, reduceLeft, reduceLeftOption, reduceRight, reduceRightOption, single, singleOption, size, spliterator, sumMethods inherited from interface Value
collect, collect, corresponds, eq, exists, forAll, forEach, getOrElse, getOrElse, getOrElseThrow, getOrElseTry, getOrNull, out, out, stderr, stdout, toArray, toCharSeq, toCompletableFuture, toEither, toEither, toInvalid, toInvalid, toJavaArray, toJavaArray, toJavaArray, toJavaCollection, toJavaList, toJavaList, toJavaMap, toJavaMap, toJavaMap, toJavaOptional, toJavaParallelStream, toJavaSet, toJavaStream, toLeft, toLeft, toLinkedMap, toLinkedMap, toLinkedSet, toList, toMap, toMap, toOption, toPriorityQueue, toPriorityQueue, toQueue, toRight, toRight, toSet, toSortedMap, toSortedMap, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toStream, toTree, toTree, toTry, toTry, toValid, toValid, toValidation, toValidation, toVector
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
elements1
private final long elements1 -
elements2
private final long elements2 -
len
private final int len
-
-
Constructor Details
-
BitSet2
-
-
Method Details
-
getWordsNum
int getWordsNum()- Specified by:
getWordsNumin classBitSetModule.AbstractBitSet<T>
-
copyExpand
long[] copyExpand(int wordsNum) - Specified by:
copyExpandin classBitSetModule.AbstractBitSet<T>
-
getWord
long getWord(int index) - Specified by:
getWordin classBitSetModule.AbstractBitSet<T>
-
head
Description copied from interface:TraversableReturns the first element of this non-emptyTraversable.- Returns:
- the first element
-
length
public int length()Description copied from interface:TraversableReturns the number of elements in this Traversable.Equivalent to
Traversable.size().- Returns:
- the number of elements
-
add
-