Class AbstractBitVector.LongBigListView

  • All Implemented Interfaces:
    it.unimi.dsi.fastutil.BigList<java.lang.Long>, it.unimi.dsi.fastutil.longs.LongBigList, it.unimi.dsi.fastutil.longs.LongCollection, it.unimi.dsi.fastutil.longs.LongIterable, it.unimi.dsi.fastutil.longs.LongStack, it.unimi.dsi.fastutil.Size64, it.unimi.dsi.fastutil.Stack<java.lang.Long>, java.io.Serializable, java.lang.Comparable<it.unimi.dsi.fastutil.BigList<? extends java.lang.Long>>, java.lang.Iterable<java.lang.Long>, java.util.Collection<java.lang.Long>
    Direct Known Subclasses:
    LongArrayBitVector.LongBigListView, LongBigArrayBitVector.LongBigListView
    Enclosing class:
    AbstractBitVector

    public static class AbstractBitVector.LongBigListView
    extends it.unimi.dsi.fastutil.longs.AbstractLongBigList
    implements it.unimi.dsi.fastutil.longs.LongBigList, java.io.Serializable
    A list-of-integers view of a bit vector.

    This class implements in the obvious way a view of a bit vector as a list of integers of given width. The vector is enlarged as needed (i.e., when adding new elements), but it is never shrunk.

    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLongBigList

        it.unimi.dsi.fastutil.longs.AbstractLongBigList.LongRandomAccessSubList, it.unimi.dsi.fastutil.longs.AbstractLongBigList.LongSubList
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected BitVector bitVector
      The underlying bit vector.
      protected long fullMask
      A bit mask containing width bits set to one.
      protected int width
      The width in bit of an element of this list view.
    • Constructor Summary

      Constructors 
      Constructor Description
      LongBigListView​(BitVector bitVector, int width)
      Returns a list-of-integers view of a bit vector.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void add​(int index, long value)  
      void add​(long index, long value)  
      long getLong​(int index)  
      long getLong​(long index)  
      long length()
      Deprecated.
      Please use size64().
      it.unimi.dsi.fastutil.longs.LongBigList length​(long newSize)
      Deprecated.
      Please use size(long).
      it.unimi.dsi.fastutil.longs.LongBigListIterator listIterator()  
      long removeLong​(long index)  
      long set​(long index, long value)  
      int size()
      Deprecated.
      void size​(long newSize)
      Resizes this list, enlarging the underying bit vector as necessary.
      long size64()  
      it.unimi.dsi.fastutil.longs.LongBigList subList​(long from, long to)  
      • Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongBigList

        add, add, addAll, addAll, addAll, addAll, addElements, addElements, clear, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, forEach, get, getElements, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, peek, peekLong, pop, popLong, push, push, rem, remove, removeElements, set, setElements, top, topLong, toString
      • Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongCollection

        add, contains, containsAll, containsAll, forEach, remove, removeAll, removeAll, removeIf, retainAll, retainAll, toArray, toLongArray, toLongArray
      • Methods inherited from class java.util.AbstractCollection

        isEmpty, toArray, toArray
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface it.unimi.dsi.fastutil.BigList

        addAll
      • Methods inherited from interface java.util.Collection

        addAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray, toArray
      • Methods inherited from interface java.lang.Comparable

        compareTo
      • Methods inherited from interface it.unimi.dsi.fastutil.longs.LongBigList

        add, addAll, addAll, addAll, addAll, addAll, addElements, addElements, get, getElements, getElements, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, remove, removeElements, set, setElements, setElements, setElements, spliterator
      • Methods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection

        add, add, addAll, contains, contains, containsAll, longIterator, longParallelStream, longSpliterator, longStream, parallelStream, rem, remove, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toLongArray, toLongArray
      • Methods inherited from interface it.unimi.dsi.fastutil.longs.LongIterable

        forEach, forEach, forEach
      • Methods inherited from interface it.unimi.dsi.fastutil.Stack

        isEmpty
    • Field Detail

      • bitVector

        protected final BitVector bitVector
        The underlying bit vector.
      • width

        protected final int width
        The width in bit of an element of this list view.
      • fullMask

        protected final long fullMask
        A bit mask containing width bits set to one.
    • Constructor Detail

      • LongBigListView

        public LongBigListView​(BitVector bitVector,
                               int width)
        Returns a list-of-integers view of a bit vector.
        Parameters:
        bitVector - a bit vector.
        width - the bit width of the integers.
    • Method Detail

      • size

        @Deprecated
        public int size()
        Deprecated.
        Specified by:
        size in interface it.unimi.dsi.fastutil.BigList<java.lang.Long>
        Specified by:
        size in interface java.util.Collection<java.lang.Long>
        Specified by:
        size in interface it.unimi.dsi.fastutil.Size64
        Overrides:
        size in class it.unimi.dsi.fastutil.longs.AbstractLongBigList
      • size64

        public long size64()
        Specified by:
        size64 in interface it.unimi.dsi.fastutil.Size64
      • length

        @Deprecated
        public long length()
        Deprecated.
        Please use size64().
        Returns:
        size64()
      • size

        public void size​(long newSize)
        Resizes this list, enlarging the underying bit vector as necessary.
        Specified by:
        size in interface it.unimi.dsi.fastutil.BigList<java.lang.Long>
        Overrides:
        size in class it.unimi.dsi.fastutil.longs.AbstractLongBigList
        Parameters:
        newSize - the new size.
      • length

        @Deprecated
        public it.unimi.dsi.fastutil.longs.LongBigList length​(long newSize)
        Deprecated.
        Please use size(long).
      • listIterator

        public it.unimi.dsi.fastutil.longs.LongBigListIterator listIterator()
        Specified by:
        listIterator in interface it.unimi.dsi.fastutil.BigList<java.lang.Long>
        Specified by:
        listIterator in interface it.unimi.dsi.fastutil.longs.LongBigList
        Overrides:
        listIterator in class it.unimi.dsi.fastutil.longs.AbstractLongBigList
      • add

        public void add​(int index,
                        long value)
        Implementation Specification:
        This implementation delegates to add(long, long).
      • add

        public void add​(long index,
                        long value)
        Specified by:
        add in interface it.unimi.dsi.fastutil.longs.LongBigList
        Overrides:
        add in class it.unimi.dsi.fastutil.longs.AbstractLongBigList
      • getLong

        public long getLong​(long index)
        Specified by:
        getLong in interface it.unimi.dsi.fastutil.longs.LongBigList
      • getLong

        public long getLong​(int index)
        Implementation Specification:
        This implementation delegates to getLong(long).
      • removeLong

        public long removeLong​(long index)
        Specified by:
        removeLong in interface it.unimi.dsi.fastutil.longs.LongBigList
        Overrides:
        removeLong in class it.unimi.dsi.fastutil.longs.AbstractLongBigList
      • set

        public long set​(long index,
                        long value)
        Specified by:
        set in interface it.unimi.dsi.fastutil.longs.LongBigList
        Overrides:
        set in class it.unimi.dsi.fastutil.longs.AbstractLongBigList
      • subList

        public it.unimi.dsi.fastutil.longs.LongBigList subList​(long from,
                                                               long to)
        Specified by:
        subList in interface it.unimi.dsi.fastutil.BigList<java.lang.Long>
        Specified by:
        subList in interface it.unimi.dsi.fastutil.longs.LongBigList
        Overrides:
        subList in class it.unimi.dsi.fastutil.longs.AbstractLongBigList