it.unimi.dsi.util
Class AbstractLongBigList.LongSubBigList
java.lang.Object
it.unimi.dsi.fastutil.longs.AbstractLongCollection
it.unimi.dsi.fastutil.longs.AbstractLongList
it.unimi.dsi.util.AbstractLongBigList
it.unimi.dsi.util.AbstractLongBigList.LongSubBigList
- All Implemented Interfaces:
- LongCollection, LongIterable, LongList, LongStack, Stack<Long>, LongBigList, Serializable, Comparable<List<? extends Long>>, Iterable<Long>, Collection<Long>, List<Long>
- Enclosing class:
- AbstractLongBigList
protected static class AbstractLongBigList.LongSubBigList
- extends AbstractLongBigList
- implements Serializable
- See Also:
- Serialized Form
Field Summary |
protected long |
from
Initial (inclusive) index of this sublist. |
protected LongBigList |
l
The list this sublist restricts. |
static long |
serialVersionUID
|
protected long |
to
Final (exclusive) index of this sublist. |
Method Summary |
void |
add(int index,
long k)
|
boolean |
add(long k)
|
void |
clear()
|
long |
getLong(long index)
Returns the long at the given position. |
long |
length()
The number of elements in this big list. |
LongListIterator |
listIterator(int index)
|
long |
removeLong(long index)
Removes the long at the given position. |
long |
set(int index,
long k)
|
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, size, 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, size, 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 |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
l
protected final LongBigList l
- The list this sublist restricts.
from
protected final long from
- Initial (inclusive) index of this sublist.
to
protected long to
- Final (exclusive) index of this sublist.
AbstractLongBigList.LongSubBigList
public AbstractLongBigList.LongSubBigList(LongBigList l,
long from,
long to)
add
public boolean add(long k)
- Specified by:
add
in interface LongCollection
- Overrides:
add
in class AbstractLongList
add
public void add(int index,
long k)
- Specified by:
add
in interface LongList
- 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
- Parameters:
index
- a position in the list.
- Returns:
- the corresponding long value.
- See Also:
List.get(int)
removeLong
public long removeLong(long index)
- Description copied from interface:
LongBigList
- Removes the long at the given position.
- Specified by:
removeLong
in interface LongBigList
- Overrides:
removeLong
in class AbstractLongBigList
- Parameters:
index
- a position in the list.
- Returns:
- the long previously at the specified position.
- See Also:
List.remove(int)
set
public long set(int index,
long k)
- Specified by:
set
in interface LongList
- Overrides:
set
in class AbstractLongList
clear
public void clear()
- Specified by:
clear
in interface Collection<Long>
- Specified by:
clear
in interface List<Long>
- Overrides:
clear
in class AbstractLongCollection
length
public long length()
- Description copied from interface:
LongBigList
- The number of elements in this big list.
- Specified by:
length
in interface LongBigList
- Returns:
- the number of elements in this big list.
- See Also:
List.size()
listIterator
public LongListIterator listIterator(int index)
- Specified by:
listIterator
in interface LongList
- Specified by:
listIterator
in interface List<Long>
- Overrides:
listIterator
in class AbstractLongList