public static class AbstractByteBigList.ByteSubList extends AbstractByteBigList implements java.io.Serializable
AbstractByteBigList.ByteRandomAccessSubList, AbstractByteBigList.ByteSubList| Modifier and Type | Field and Description |
|---|---|
protected long |
from
Initial (inclusive) index of this sublist.
|
protected ByteBigList |
l
The list this sublist restricts.
|
protected long |
to
Final (exclusive) index of this sublist.
|
| Constructor and Description |
|---|
ByteSubList(ByteBigList l,
long from,
long to) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(byte k) |
void |
add(long index,
byte k)
Inserts the specified element at the specified position in this type-specific big list (optional operation).
|
boolean |
addAll(long index,
ByteBigList l)
Inserts all of the elements in the specified type-specific big list into this type-specific big list at the specified position (optional operation).
|
boolean |
addAll(long index,
it.unimi.dsi.fastutil.bytes.ByteCollection c)
Inserts all of the elements in the specified type-specific collection into this type-specific big list at the specified position (optional operation).
|
boolean |
addAll(long index,
java.util.Collection<? extends java.lang.Byte> c)
Adds all of the elements in the specified collection to this list (optional operation).
|
void |
addElements(long index,
byte[][] a,
long offset,
long length)
Add (hopefully quickly) elements to this type-specific big list.
|
byte |
getByte(long index)
Returns the element at the specified position.
|
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.
|
it.unimi.dsi.fastutil.ints.IntSpliterator |
intSpliterator() |
it.unimi.dsi.fastutil.bytes.ByteBigListIterator |
listIterator(long index)
Returns a type-specific list iterator on this type-specific big list starting at a given index.
|
boolean |
rem(byte k)
Removes a single instance of the specified element from this collection, if it is present (optional operation).
|
byte |
removeByte(long index)
Removes the element at the specified position.
|
void |
removeElements(long from,
long to)
Removes (hopefully quickly) elements of this type-specific big list.
|
byte |
set(long index,
byte k)
Replaces the element at the specified position in this big list with the specified element (optional operation).
|
long |
size64() |
it.unimi.dsi.fastutil.bytes.ByteSpliterator |
spliterator()
Returns a type-specific spliterator on the elements of this big-list.
|
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, addAll, addElements, clear, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, forEach, get, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, peek, peekByte, pop, popByte, push, push, remove, set, setElements, size, size, top, topByte, toStringadd, contains, containsAll, containsAll, remove, removeAll, removeAll, retainAll, retainAll, toArray, toByteArray, toByteArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, addAll, addAll, getElements, setElements, setElementsadd, contains, containsAll, intIterator, intParallelStream, intStream, parallelStream, remove, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toByteArray, toByteArrayprotected final ByteBigList l
protected final long from
protected long to
public ByteSubList(ByteBigList l, long from, long to)
public boolean add(byte k)
AbstractByteBigListadd in interface it.unimi.dsi.fastutil.bytes.ByteCollectionadd in class AbstractByteBigListpublic void add(long index,
byte k)
AbstractByteBigListadd in interface ByteBigListadd in class AbstractByteBigListBigList.add(long,Object)public boolean addAll(long index,
java.util.Collection<? extends java.lang.Byte> c)
AbstractByteBigListaddAll in interface it.unimi.dsi.fastutil.BigList<java.lang.Byte>addAll in class AbstractByteBigListpublic byte getByte(long index)
ByteBigListgetByte in interface ByteBigListBigList.get(long)public byte removeByte(long index)
AbstractByteBigListremoveByte in interface ByteBigListremoveByte in class AbstractByteBigListBigList.remove(long)public byte set(long index,
byte k)
AbstractByteBigListset in interface ByteBigListset in class AbstractByteBigListBigList.set(long,Object)public long size64()
size64 in interface it.unimi.dsi.fastutil.Size64public void getElements(long from,
byte[][] a,
long offset,
long length)
AbstractByteBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements in interface ByteBigListgetElements in class AbstractByteBigListfrom - 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.public void removeElements(long from,
long to)
AbstractByteBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements in interface ByteBigListremoveElements in class AbstractByteBigListfrom - the start index (inclusive).to - the end index (exclusive).public void addElements(long index,
byte[][] a,
long offset,
long length)
AbstractByteBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements in interface ByteBigListaddElements in class AbstractByteBigListindex - 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.public it.unimi.dsi.fastutil.bytes.ByteBigListIterator listIterator(long index)
AbstractByteBigListlistIterator in interface it.unimi.dsi.fastutil.BigList<java.lang.Byte>listIterator in interface ByteBigListlistIterator in class AbstractByteBigListBigList.listIterator(long)public it.unimi.dsi.fastutil.bytes.ByteSpliterator spliterator()
ByteBigListBigList spliterators must report at least Spliterator.SIZED and Spliterator.ORDERED.
See List.spliterator() for more documentation on the requirements
of the returned spliterator (despite BigList not being a List, most of the
same requirements apply.
spliterator in interface ByteBigListspliterator in interface it.unimi.dsi.fastutil.bytes.ByteCollectionspliterator in interface it.unimi.dsi.fastutil.bytes.ByteIterablespliterator in interface java.lang.Iterable<java.lang.Byte>spliterator in interface java.util.Collection<java.lang.Byte>public it.unimi.dsi.fastutil.ints.IntSpliterator intSpliterator()
intSpliterator in interface it.unimi.dsi.fastutil.bytes.ByteCollectionintSpliterator in interface it.unimi.dsi.fastutil.bytes.ByteIterableintSpliterator in class AbstractByteBigListpublic ByteBigList subList(long from, long to)
ByteBigListfrom, inclusive, to the index to, exclusive.subList in interface it.unimi.dsi.fastutil.BigList<java.lang.Byte>subList in interface ByteBigListsubList in class AbstractByteBigListBigList.subList(long,long)public boolean rem(byte k)
AbstractByteBigListrem in interface it.unimi.dsi.fastutil.bytes.ByteCollectionrem in class AbstractByteBigListCollection.remove(Object)public boolean addAll(long index,
it.unimi.dsi.fastutil.bytes.ByteCollection c)
AbstractByteBigListaddAll in interface ByteBigListaddAll in class AbstractByteBigListList.addAll(int,java.util.Collection)public boolean addAll(long index,
ByteBigList l)
ByteBigListaddAll in interface ByteBigListBigList.addAll(long,Collection)