|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.fastutil.bytes.ByteCollections.UnmodifiableCollection
it.unimi.dsi.fastutil.bytes.ByteLists.UnmodifiableList
public static class ByteLists.UnmodifiableList
An unmodifiable wrapper class for lists.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Method Summary | |
|---|---|
void |
add(int i,
byte k)
|
void |
add(int i,
Byte k)
|
boolean |
addAll(ByteList l)
|
boolean |
addAll(int index,
ByteCollection c)
|
boolean |
addAll(int index,
ByteList l)
|
boolean |
addAll(int index,
Collection<? extends Byte> c)
|
void |
addElements(int index,
byte[] a)
Add (hopefully quickly) elements to this type-specific list. |
void |
addElements(int index,
byte[] a,
int offset,
int length)
Add (hopefully quickly) elements to this type-specific list. |
ByteListIterator |
byteListIterator()
Deprecated. |
ByteListIterator |
byteListIterator(int i)
Deprecated. |
ByteList |
byteSubList(int from,
int to)
Deprecated. |
int |
compareTo(List<? extends Byte> o)
|
boolean |
equals(Object o)
|
Byte |
get(int i)
|
byte |
getByte(int i)
|
void |
getElements(int from,
byte[] a,
int offset,
int length)
Copies (hopefully quickly) elements of this type-specific list into the given array. |
int |
hashCode()
|
int |
indexOf(byte k)
|
int |
indexOf(Object o)
|
int |
lastIndexOf(byte k)
|
int |
lastIndexOf(Object o)
|
ByteListIterator |
listIterator()
Returns a type-specific list iterator on the list. |
ByteListIterator |
listIterator(int i)
Returns a type-specific list iterator on the list starting at a given index. |
Byte |
remove(int i)
|
byte |
removeByte(int i)
|
void |
removeElements(int from,
int to)
Removes (hopefully quickly) elements of this type-specific list. |
byte |
set(int i,
byte k)
|
Byte |
set(int index,
Byte k)
|
void |
size(int size)
Sets the size of this list. |
ByteList |
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.bytes.ByteCollections.UnmodifiableCollection |
|---|
add, add, addAll, addAll, byteIterator, clear, contains, contains, containsAll, containsAll, isEmpty, iterator, rem, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toArray, toByteArray, toByteArray, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteList |
|---|
iterator |
| Methods inherited from interface java.util.List |
|---|
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteCollection |
|---|
add, addAll, byteIterator, contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toByteArray, toByteArray |
| Field Detail |
|---|
public static final long serialVersionUID
| Method Detail |
|---|
public byte getByte(int i)
getByte in interface ByteListList.get(int)
public byte set(int i,
byte k)
set in interface ByteListList.set(int,Object)
public void add(int i,
byte k)
add in interface ByteListList.add(int,Object)public byte removeByte(int i)
removeByte in interface ByteListList.remove(int)public int indexOf(byte k)
indexOf in interface ByteListList.indexOf(Object)public int lastIndexOf(byte k)
lastIndexOf in interface ByteListList.lastIndexOf(Object)
public boolean addAll(int index,
Collection<? extends Byte> c)
addAll in interface List<Byte>
public void getElements(int from,
byte[] a,
int offset,
int length)
ByteList
getElements in interface ByteListfrom - 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)
ByteList
removeElements in interface ByteListfrom - the start index (inclusive).to - the end index (exclusive).
public void addElements(int index,
byte[] a,
int offset,
int length)
ByteList
addElements in interface ByteListindex - 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 void addElements(int index,
byte[] a)
ByteList
addElements in interface ByteListindex - the index at which to add elements.a - the array containing the elements.public void size(int size)
ByteListIf the specified size is smaller than the current size, the last elements are
discarded. Otherwise, they are filled with 0/null/false.
size in interface ByteListsize - the new size.public ByteListIterator listIterator()
ByteList
listIterator in interface ByteListlistIterator in interface List<Byte>ByteList.listIterator()public ByteListIterator listIterator(int i)
ByteList
listIterator in interface ByteListlistIterator in interface List<Byte>ByteList.listIterator(int)@Deprecated public ByteListIterator byteListIterator()
ByteList
byteListIterator in interface ByteListByteList.listIterator()@Deprecated public ByteListIterator byteListIterator(int i)
ByteList
byteListIterator in interface ByteListByteList.listIterator(int)
public ByteList subList(int from,
int to)
ByteListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in List.subList(int,int).
subList in interface ByteListsubList in interface List<Byte>List.subList(int,int)
@Deprecated
public ByteList byteSubList(int from,
int to)
ByteListfrom, inclusive, to the index to, exclusive.
byteSubList in interface ByteListList.subList(int,int)public boolean equals(Object o)
equals in interface Collection<Byte>equals in interface List<Byte>equals in class Objectpublic int hashCode()
hashCode in interface Collection<Byte>hashCode in interface List<Byte>hashCode in class Objectpublic int compareTo(List<? extends Byte> o)
compareTo in interface Comparable<List<? extends Byte>>
public boolean addAll(int index,
ByteCollection c)
addAll in interface ByteListList.add(int,Object)public boolean addAll(ByteList l)
addAll in interface ByteListList.add(int,Object)
public boolean addAll(int index,
ByteList l)
addAll in interface ByteListList.add(int,Object)public Byte get(int i)
get in interface List<Byte>
public void add(int i,
Byte k)
add in interface List<Byte>
public Byte set(int index,
Byte k)
set in interface List<Byte>public Byte remove(int i)
remove in interface List<Byte>public int indexOf(Object o)
indexOf in interface List<Byte>public int lastIndexOf(Object o)
lastIndexOf in interface List<Byte>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||