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

public static class BitSetModule.BitSet2<T> extends BitSetModule.AbstractBitSet<T>
See Also:
  • 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

  • Method Details

    • getWordsNum

      int getWordsNum()
      Specified by:
      getWordsNum in class BitSetModule.AbstractBitSet<T>
    • copyExpand

      long[] copyExpand(int wordsNum)
      Specified by:
      copyExpand in class BitSetModule.AbstractBitSet<T>
    • getWord

      long getWord(int index)
      Specified by:
      getWord in class BitSetModule.AbstractBitSet<T>
    • head

      public T head()
      Description copied from interface: Traversable
      Returns the first element of this non-empty Traversable.
      Returns:
      the first element
    • length

      public int length()
      Description copied from interface: Traversable
      Returns the number of elements in this Traversable.

      Equivalent to Traversable.size().

      Returns:
      the number of elements
    • add

      public BitSet<T> add(T t)
      Description copied from interface: Set
      Returns a new set containing all elements of this set plus the given element, if it was not already present.
      Parameters:
      t - the element to add
      Returns:
      a new set including the element