it.unimi.dsi.util
Class AbstractLongBigList.LongSubBigList

java.lang.Object
  extended by it.unimi.dsi.fastutil.longs.AbstractLongCollection
      extended by it.unimi.dsi.fastutil.longs.AbstractLongList
          extended by it.unimi.dsi.util.AbstractLongBigList
              extended by it.unimi.dsi.util.AbstractLongBigList.LongSubBigList
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:
AbstractLongBigList

protected static class AbstractLongBigList.LongSubBigList
extends AbstractLongBigList
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class it.unimi.dsi.util.AbstractLongBigList
AbstractLongBigList.LongSubBigList
 
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLongList
AbstractLongList.LongSubList
 
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.
 
Constructor Summary
AbstractLongBigList.LongSubBigList(LongBigList l, long from, long to)
           
 
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.util.AbstractLongBigList
add, ensureIndex, ensureRestrictedIndex, getLong, length, set, 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, 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 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, 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 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
 

Field Detail

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.

Constructor Detail

AbstractLongBigList.LongSubBigList

public AbstractLongBigList.LongSubBigList(LongBigList l,
                                          long from,
                                          long to)
Method Detail

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 java.util.Collection<java.lang.Long>
Specified by:
clear in interface java.util.List<java.lang.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 java.util.List<java.lang.Long>
Overrides:
listIterator in class AbstractLongList