it.unimi.dsi.bits
Class LongArrayBitVector.LongBigListView

java.lang.Object
  extended by it.unimi.dsi.fastutil.longs.AbstractLongCollection
      extended by it.unimi.dsi.fastutil.longs.AbstractLongList
          extended by it.unimi.dsi.bits.AbstractBitVector.LongBigListView
              extended by it.unimi.dsi.bits.LongArrayBitVector.LongBigListView
All Implemented Interfaces:
LongCollection, LongIterable, LongList, LongStack, Stack<java.lang.Long>, LongBigList, java.io.Serializable, java.lang.Comparable<java.util.List<? extends java.lang.Long>>, java.lang.Iterable<java.lang.Long>, java.util.Collection<java.lang.Long>, java.util.List<java.lang.Long>
Enclosing class:
LongArrayBitVector

protected static class LongArrayBitVector.LongBigListView
extends AbstractBitVector.LongBigListView

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.AbstractLongList
AbstractLongList.LongSubList
 
Field Summary
 
Fields inherited from class it.unimi.dsi.bits.AbstractBitVector.LongBigListView
fullMask, width
 
Constructor Summary
LongArrayBitVector.LongBigListView(LongArrayBitVector bitVector, int width)
           
 
Method Summary
 boolean add(long value)
           
 void clear()
           
 long getLong(long index)
          Returns the long at the given position.
 long set(long index, long value)
          Sets the long at the given position.
 
Methods inherited from class it.unimi.dsi.bits.AbstractBitVector.LongBigListView
add, add, getLong, length, length, listIterator, removeLong, set, size, size, subList
 
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongList
add, addAll, addAll, addAll, addAll, addAll, addAll, addElements, addElements, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, get, getElements, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, longListIterator, longListIterator, longSubList, peek, peekLong, pop, popLong, push, push, rem, remove, remove, removeElements, removeLong, set, subList, top, topLong, toString
 
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongCollection
add, contains, containsAll, containsAll, isEmpty, longIterator, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toLongArray, toLongArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongList
addAll, addAll, addAll, addElements, addElements, getElements, indexOf, iterator, lastIndexOf, listIterator, longListIterator, longListIterator, longSubList, removeElements, removeLong, subList
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, lastIndexOf, remove, remove, removeAll, retainAll, set, toArray, toArray
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection
addAll, contains, containsAll, longIterator, rem, removeAll, retainAll, toArray, toArray, toLongArray, toLongArray
 
Methods inherited from interface it.unimi.dsi.fastutil.Stack
isEmpty
 

Constructor Detail

LongArrayBitVector.LongBigListView

public LongArrayBitVector.LongBigListView(LongArrayBitVector bitVector,
                                          int width)
Method Detail

add

public boolean add(long value)
Specified by:
add in interface LongCollection
Overrides:
add in class AbstractLongList

getLong

public long getLong(long index)
Description copied from interface: LongBigList
Returns the long at the given position.

Specified by:
getLong in interface LongBigList
Overrides:
getLong in class AbstractBitVector.LongBigListView
Parameters:
index - a position in the list.
Returns:
the corresponding long value.
See Also:
List.get(int)

clear

public void clear()
Specified by:
clear in interface java.util.Collection<java.lang.Long>
Specified by:
clear in interface java.util.List<java.lang.Long>
Overrides:
clear in class AbstractLongCollection

set

public long set(long index,
                long value)
Description copied from interface: LongBigList
Sets the long at the given position.

Specified by:
set in interface LongBigList
Overrides:
set in class AbstractBitVector.LongBigListView
Parameters:
index - a position in the list.
value - a long value.
Returns:
the previous value.
See Also:
List.set(int,Object)