|
||||||||||
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
An unmodifiable wrapper class for lists.
Field Summary | |
static long |
serialVersionUID
|
Method Summary | |
void |
add(int i,
byte k)
|
void |
add(int i,
Object k)
|
boolean |
addAll(ByteList l)
|
boolean |
addAll(int index,
ByteCollection c)
|
boolean |
addAll(int index,
ByteList l)
|
boolean |
addAll(int index,
Collection c)
|
boolean |
addAll(int index,
List l)
|
boolean |
addAll(List l)
|
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()
Returns a type-specific list iterator on the list. |
ByteListIterator |
byteListIterator(int i)
Returns a type-specific list iterator on the list starting at a given index. |
ByteList |
byteSubList(int from,
int to)
|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
Object |
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)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int i)
|
Object |
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)
|
Object |
set(int index,
Object k)
|
void |
size(int size)
Sets the size of this list. |
List |
subList(int from,
int to)
|
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 java.util.List |
add, addAll, clear, contains, containsAll, isEmpty, iterator, 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, toByteArray, toByteArray |
Field Detail |
public static final long serialVersionUID
Method Detail |
public byte getByte(int i)
getByte
in interface ByteList
List.get(int)
public byte set(int i, byte k)
set
in interface ByteList
List.set(int,Object)
public void add(int i, byte k)
add
in interface ByteList
List.add(int,Object)
public byte removeByte(int i)
removeByte
in interface ByteList
List.remove(int)
public int indexOf(byte k)
indexOf
in interface ByteList
List.indexOf(Object)
public int lastIndexOf(byte k)
lastIndexOf
in interface ByteList
List.lastIndexOf(Object)
public boolean addAll(int index, Collection c)
addAll
in interface List
public boolean addAll(int index, ByteCollection c)
addAll
in interface ByteList
List.add(int,Object)
public boolean addAll(List l)
public boolean addAll(ByteList l)
addAll
in interface ByteList
List.add(int,Object)
public boolean addAll(int index, List l)
public boolean addAll(int index, ByteList l)
addAll
in interface ByteList
List.add(int,Object)
public void getElements(int from, byte[] a, int offset, int length)
ByteList
getElements
in interface ByteList
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)
ByteList
removeElements
in interface ByteList
from
- the start index (inclusive).to
- the end index (exclusive).public void addElements(int index, byte[] a, int offset, int length)
ByteList
addElements
in interface ByteList
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 void addElements(int index, byte[] a)
ByteList
addElements
in interface ByteList
index
- the index at which to add elements.a
- the array containing the elements.public void size(int size)
ByteList
If 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 ByteList
size
- the new size.public ListIterator listIterator()
listIterator
in interface List
public ListIterator listIterator(int i)
listIterator
in interface List
public ByteListIterator byteListIterator()
ByteList
The 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 ByteList
List.listIterator()
public ByteListIterator byteListIterator(int i)
ByteList
The 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 ByteList
List.listIterator(int)
public List subList(int from, int to)
subList
in interface List
public ByteList byteSubList(int from, int to)
byteSubList
in interface ByteList
List.subList(int,int)
public boolean equals(Object o)
equals
in interface List
public int hashCode()
hashCode
in interface List
public int compareTo(Object o)
compareTo
in interface Comparable
public Object get(int i)
get
in interface List
public void add(int i, Object k)
add
in interface List
public Object set(int index, Object k)
set
in interface List
public Object remove(int i)
remove
in interface List
public int indexOf(Object o)
indexOf
in interface List
public int lastIndexOf(Object o)
lastIndexOf
in interface List
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |