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 a non-empty Traversable.
      Returns:
      The first element of this Traversable.
    • length

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

      Same as Traversable.size().

      Returns:
      the number of elements
    • add

      public BitSet<T> add(T t)
      Description copied from interface: Set
      Add the given element to this set, if it is not already contained.
      Parameters:
      t - The element to be added.
      Returns:
      A new set containing all elements of this set and also element.