|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<Long>
it.unimi.dsi.fastutil.longs.AbstractLongCollection
it.unimi.dsi.fastutil.longs.AbstractLongList
it.unimi.dsi.fastutil.longs.AbstractLongList.LongSubList
public static class AbstractLongList.LongSubList
Nested Class Summary |
---|
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLongList |
---|
AbstractLongList.LongSubList |
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
AbstractLongList.LongSubList(LongList l,
int from,
int to)
|
Method Summary | |
---|---|
void |
add(int index,
long k)
|
boolean |
add(long k)
|
boolean |
addAll(int index,
Collection<? extends Long> c)
|
boolean |
addAll(int index,
LongCollection c)
Delegates to a more generic method. |
boolean |
addAll(int index,
LongList l)
Delegates to a more generic method. |
void |
addElements(int index,
long[] a,
int offset,
int length)
Adds elements to this type-specific list one-by-one. |
void |
clear()
|
void |
getElements(int from,
long[] a,
int offset,
int length)
Copies element of this type-specific list into the given array one-by-one. |
long |
getLong(int index)
|
LongListIterator |
listIterator(int index)
Returns a type-specific list iterator on the list starting at a given index. |
boolean |
rem(long k)
Note that this method should be called remove() , but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. |
boolean |
remove(Object o)
Delegates to rem() . |
void |
removeElements(int from,
int to)
Removes elements of this type-specific list one-by-one. |
long |
removeLong(int index)
|
long |
set(int index,
long k)
|
int |
size()
|
LongList |
subList(int from,
int to)
Returns a type-specific view of the portion of this list from the index from , inclusive, to the index to , exclusive. |
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongList |
---|
add, addAll, addAll, addAll, addElements, compareTo, contains, equals, get, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, longListIterator, longListIterator, longSubList, peek, peekLong, pop, popLong, push, push, remove, set, size, 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 |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
add, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray |
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection |
---|
containsAll, longIterator, removeAll, retainAll, toArray, toArray, toLongArray, toLongArray |
Methods inherited from interface it.unimi.dsi.fastutil.Stack |
---|
isEmpty |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public AbstractLongList.LongSubList(LongList l, int from, int to)
Method Detail |
---|
public boolean add(long k)
add
in interface LongCollection
add
in interface LongList
add
in class AbstractLongList
Collection.add(Object)
public void add(int index, long k)
add
in interface LongList
add
in class AbstractLongList
List.add(int,Object)
public boolean addAll(int index, Collection<? extends Long> c)
addAll
in interface List<Long>
addAll
in class AbstractLongList
public long getLong(int index)
getLong
in interface LongList
List.get(int)
public long removeLong(int index)
removeLong
in interface LongList
removeLong
in class AbstractLongList
List.remove(int)
public long set(int index, long k)
set
in interface LongList
set
in class AbstractLongList
List.set(int,Object)
public void clear()
clear
in interface Collection<Long>
clear
in interface List<Long>
clear
in class AbstractCollection<Long>
public int size()
size
in interface Collection<Long>
size
in interface List<Long>
size
in class AbstractCollection<Long>
public void getElements(int from, long[] a, int offset, int length)
AbstractLongList
This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements
in interface LongList
getElements
in class AbstractLongList
from
- the start index (inclusive).a
- the destination array.offset
- the offset into the destination array where to store the first element copied.length
- the number of elements to be copied.public void removeElements(int from, int to)
AbstractLongList
This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements
in interface LongList
removeElements
in class AbstractLongList
from
- the start index (inclusive).to
- the end index (exclusive).public void addElements(int index, long[] a, int offset, int length)
AbstractLongList
This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements
in interface LongList
addElements
in class AbstractLongList
index
- the index at which to add elements.a
- the array containing the elements.offset
- the offset of the first element to add.length
- the number of elements to add.public LongListIterator listIterator(int index)
LongList
listIterator
in interface LongList
listIterator
in interface List<Long>
listIterator
in class AbstractLongList
List.listIterator(int)
public LongList subList(int from, int to)
LongList
from
, inclusive, to the index to
, exclusive.
Note that this specification strengthens the one given in List.subList(int,int)
.
subList
in interface LongList
subList
in interface List<Long>
subList
in class AbstractLongList
List.subList(int,int)
public boolean rem(long k)
LongCollection
remove()
, but the clash
with the similarly named index-based method in the List
interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates
remove()
.
rem
in interface LongCollection
rem
in class AbstractLongList
Collection.remove(Object)
public boolean remove(Object o)
AbstractLongList
rem()
.
remove
in interface Collection<Long>
remove
in interface List<Long>
remove
in class AbstractLongList
public boolean addAll(int index, LongCollection c)
AbstractLongList
addAll
in interface LongList
addAll
in class AbstractLongList
List.add(int,Object)
public boolean addAll(int index, LongList l)
AbstractLongList
addAll
in interface LongList
addAll
in class AbstractLongList
List.add(int,Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |