it.unimi.dsi.bits
Class LongArrayBitVector.LongBigListView
java.lang.Object
it.unimi.dsi.fastutil.longs.AbstractLongCollection
it.unimi.dsi.fastutil.longs.AbstractLongList
it.unimi.dsi.bits.AbstractBitVector.LongBigListView
it.unimi.dsi.bits.LongArrayBitVector.LongBigListView
- All Implemented Interfaces:
- LongCollection, LongIterable, LongList, LongStack, Stack<Long>, LongBigList, Serializable, Comparable<List<? extends Long>>, Iterable<Long>, Collection<Long>, List<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
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 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 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 |
LongArrayBitVector.LongBigListView
public LongArrayBitVector.LongBigListView(LongArrayBitVector bitVector,
int width)
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 Collection<Long>
- Specified by:
clear
in interface List<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)