public interface ByteBigList extends BigList<java.lang.Byte>, ByteCollection, java.lang.Comparable<BigList<? extends java.lang.Byte>>
BigList
; provides some additional methods that use polymorphism to avoid (un)boxing.
Additionally, this interface strengthens iterator()
, listIterator()
,
listIterator(long)
and subList(long,long)
.
Besides polymorphic methods, this interfaces specifies methods to copy into an array or remove contiguous sublists. Although the abstract implementation of this interface provides simple, one-by-one implementations of these methods, it is expected that concrete implementation override them with optimized versions.
List
Modifier and Type | Method and Description |
---|---|
void |
add(long index,
byte key) |
boolean |
addAll(ByteBigList c) |
boolean |
addAll(long index,
ByteBigList c) |
boolean |
addAll(long index,
ByteCollection c) |
void |
addElements(long index,
byte[][] a)
Add (hopefully quickly) elements to this type-specific big list.
|
void |
addElements(long index,
byte[][] a,
long offset,
long length)
Add (hopefully quickly) elements to this type-specific big list.
|
byte |
getByte(long index) |
void |
getElements(long from,
byte[][] a,
long offset,
long length)
Copies (hopefully quickly) elements of this type-specific big list into the given big array.
|
long |
indexOf(byte k) |
ByteBigListIterator |
iterator()
Returns a type-specific big-list iterator on this type-specific big list.
|
long |
lastIndexOf(byte k) |
ByteBigListIterator |
listIterator()
Returns a type-specific big-list iterator on this type-specific big list.
|
ByteBigListIterator |
listIterator(long index)
Returns a type-specific list iterator on this type-specific big list starting at a given index.
|
byte |
removeByte(long index) |
void |
removeElements(long from,
long to)
Removes (hopefully quickly) elements of this type-specific big list.
|
byte |
set(long index,
byte k) |
ByteBigList |
subList(long from,
long to)
Returns a type-specific view of the portion of this type-specific big list from the index
from , inclusive, to the index to , exclusive. |
add, addAll, get, indexOf, lastIndexOf, remove, set, size
add, addAll, byteIterator, contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toByteArray, toByteArray
ByteBigListIterator iterator()
iterator
in interface ByteCollection
iterator
in interface ByteIterable
iterator
in interface java.util.Collection<java.lang.Byte>
iterator
in interface java.lang.Iterable<java.lang.Byte>
List.iterator()
ByteBigListIterator listIterator()
listIterator
in interface BigList<java.lang.Byte>
List.listIterator()
ByteBigListIterator listIterator(long index)
listIterator
in interface BigList<java.lang.Byte>
index
- index of first element to be returned from the big-list iterator.BigList.listIterator(long)
ByteBigList subList(long from, long to)
from
, inclusive, to the index to
, exclusive.
Note that this specification strengthens the one given in BigList.subList(long,long)
.
subList
in interface BigList<java.lang.Byte>
from
- the starting element (inclusive).to
- the ending element (exclusive).BigList.subList(long,long)
void getElements(long from, byte[][] a, long offset, long length)
from
- the start index (inclusive).a
- the destination big array.offset
- the offset into the destination big array where to store the first element copied.length
- the number of elements to be copied.void removeElements(long from, long to)
from
- the start index (inclusive).to
- the end index (exclusive).void addElements(long index, byte[][] a)
index
- the index at which to add elements.a
- the big array containing the elements.void addElements(long index, byte[][] a, long offset, long length)
index
- the index at which to add elements.a
- the big array containing the elements.offset
- the offset of the first element to add.length
- the number of elements to add.void add(long index, byte key)
List.add(int,Object)
boolean addAll(long index, ByteCollection c)
List.addAll(int,java.util.Collection)
boolean addAll(long index, ByteBigList c)
List.addAll(int,java.util.Collection)
boolean addAll(ByteBigList c)
List.addAll(int,java.util.Collection)
byte getByte(long index)
BigList.get(long)
long indexOf(byte k)
BigList.indexOf(Object)
long lastIndexOf(byte k)
BigList.lastIndexOf(Object)
byte removeByte(long index)
BigList.remove(long)
byte set(long index, byte k)
BigList.set(long,Object)