|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.bytes.AbstractByteCollection
it.unimi.dsi.fastutil.bytes.AbstractByteList
it.unimi.dsi.fastutil.bytes.AbstractByteList.ByteSubList
| Nested Class Summary |
| Nested classes inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteList |
AbstractByteList.ByteSubList |
| Constructor Summary | |
AbstractByteList.ByteSubList(ByteList l,
int from,
int to)
|
|
| Method Summary | |
boolean |
add(byte k)
|
void |
add(int index,
byte k)
|
boolean |
addAll(int index,
ByteCollection c)
Delegates to a more generic method. |
boolean |
addAll(int index,
ByteList l)
Delegates to a more generic method. |
boolean |
addAll(int index,
Collection c)
|
void |
addElements(int index,
byte[] a,
int offset,
int length)
Adds elements to this type-specific list one-by-one. |
ByteListIterator |
byteListIterator(int index)
Returns a type-specific list iterator on the list starting at a given index. |
ByteList |
byteSubList(int from,
int to)
|
void |
clear()
|
byte |
getByte(int index)
|
void |
getElements(int from,
byte[] a,
int offset,
int length)
Copies element of this type-specific list into the given array one-by-one. |
boolean |
rem(byte 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. |
byte |
removeByte(int index)
|
void |
removeElements(int from,
int to)
Removes elements of this type-specific list one-by-one. |
byte |
set(int index,
byte k)
|
int |
size()
|
| Methods inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteList |
add, addAll, addAll, addAll, addElements, byteIterator, byteListIterator, compareTo, contains, equals, get, hashCode, indexOf, indexOf, lastIndexOf, lastIndexOf, listIterator, listIterator, peek, peekByte, pop, popByte, push, push, remove, set, size, subList, top, topByte, toString |
| Methods inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteCollection |
add, contains, containsAll, containsAll, isEmpty, iterator, rem, remove, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toByteArray, toByteArray |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
add, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteCollection |
containsAll, removeAll, retainAll, toArray, toByteArray, toByteArray |
| Methods inherited from interface it.unimi.dsi.fastutil.Stack |
isEmpty |
| Constructor Detail |
public AbstractByteList.ByteSubList(ByteList l,
int from,
int to)
| Method Detail |
public boolean add(byte k)
add in interface ByteCollectionadd in class AbstractByteList
public void add(int index,
byte k)
add in interface ByteListadd in class AbstractByteList
public boolean addAll(int index,
Collection c)
addAll in interface ListaddAll in class AbstractByteList
public boolean addAll(int index,
ByteCollection c)
AbstractByteList
addAll in interface ByteListaddAll in class AbstractByteList
public boolean addAll(int index,
ByteList l)
AbstractByteList
addAll in interface ByteListaddAll in class AbstractByteListpublic byte getByte(int index)
getByte in interface ByteListList.get(int)public byte removeByte(int index)
removeByte in interface ByteListremoveByte in class AbstractByteListpublic boolean rem(byte k)
ByteCollectionremove(), 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 ByteCollectionrem in class AbstractByteList
public byte set(int index,
byte k)
set in interface ByteListset in class AbstractByteListpublic void clear()
clear in interface Listclear in class AbstractByteCollectionpublic int size()
size in interface List
public void getElements(int from,
byte[] a,
int offset,
int length)
AbstractByteListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements in interface ByteListgetElements in class AbstractByteListfrom - 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)
AbstractByteListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements in interface ByteListremoveElements in class AbstractByteListfrom - the start index (inclusive).to - the end index (exclusive).
public void addElements(int index,
byte[] a,
int offset,
int length)
AbstractByteListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements in interface ByteListaddElements in class AbstractByteListindex - 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 ByteListIterator byteListIterator(int index)
ByteListThe iterator returned by the List.listIterator() method and by this
method are identical; however, using this method you can save a type casting.
byteListIterator in interface ByteListbyteListIterator in class AbstractByteList
public ByteList byteSubList(int from,
int to)
byteSubList in interface ByteListbyteSubList in class AbstractByteList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||