public static class ByteBigLists.Singleton extends AbstractByteBigList implements java.io.Serializable, java.lang.Cloneable
This class may be useful to implement your own in case you subclass a type-specific big list.
AbstractByteBigList.ByteRandomAccessSubList, AbstractByteBigList.ByteSubList
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(ByteBigList c)
Appends all of the elements in the specified type-specific big list to the end of this type-specific big list (optional operation).
|
boolean |
addAll(ByteCollection c)
Adds all elements of the given type-specific collection to this collection.
|
boolean |
addAll(java.util.Collection<? extends java.lang.Byte> c) |
boolean |
addAll(long i,
ByteBigList c)
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 i,
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 i,
java.util.Collection<? extends java.lang.Byte> c)
Adds all of the elements in the specified collection to this list (optional operation).
|
void |
clear() |
java.lang.Object |
clone() |
boolean |
contains(byte k)
Returns true if this list contains the specified element.
|
byte |
getByte(long i)
Returns the element at the specified position.
|
long |
indexOf(byte k)
Returns the index of the first occurrence of the specified element in this type-specific big list, or -1 if this big list does not contain the element.
|
ByteBigListIterator |
listIterator()
Returns a type-specific big-list iterator on this type-specific big list.
|
ByteBigListIterator |
listIterator(long i)
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).
|
boolean |
removeAll(ByteCollection c)
Remove from this collection all elements in the given type-specific collection.
|
boolean |
removeAll(java.util.Collection<?> c) |
byte |
removeByte(long i)
Removes the element at the specified position.
|
boolean |
retainAll(ByteCollection c)
Retains in this collection only elements from the given type-specific collection.
|
boolean |
retainAll(java.util.Collection<?> c) |
long |
size64()
Returns the size of this data structure as a long.
|
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. |
byte[] |
toByteArray()
Returns a primitive type array containing the items of this collection.
|
add, add, add, addElements, addElements, compareTo, equals, forEach, get, getElements, hashCode, indexOf, intSpliterator, iterator, lastIndexOf, lastIndexOf, peek, peekByte, pop, popByte, push, push, remove, removeElements, set, set, setElements, size, size, top, topByte, toString
add, contains, containsAll, containsAll, remove, toArray, toByteArray
addAll, addAll, setElements, setElements
add, contains, containsAll, intIterator, intParallelStream, intStream, parallelStream, remove, removeIf, removeIf, removeIf, stream, toArray, toByteArray
forEach, forEach
public byte getByte(long i)
ByteBigList
getByte
in interface ByteBigList
BigList.get(long)
public boolean rem(byte k)
AbstractByteBigList
rem
in interface ByteCollection
rem
in class AbstractByteBigList
Collection.remove(Object)
public byte removeByte(long i)
AbstractByteBigList
removeByte
in interface ByteBigList
removeByte
in class AbstractByteBigList
BigList.remove(long)
public boolean contains(byte k)
AbstractByteBigList
contains
in interface ByteCollection
contains
in class AbstractByteBigList
Collection.contains(Object)
public long indexOf(byte k)
ByteBigList
indexOf
in interface ByteBigList
indexOf
in class AbstractByteBigList
BigList.indexOf(Object)
public byte[] toByteArray()
ByteCollection
toByteArray
in interface ByteCollection
toByteArray
in class AbstractByteCollection
Collection.toArray()
public ByteBigListIterator listIterator()
AbstractByteBigList
listIterator
in interface BigList<java.lang.Byte>
listIterator
in interface ByteBigList
listIterator
in class AbstractByteBigList
BigList.listIterator()
public ByteBigListIterator listIterator(long i)
AbstractByteBigList
listIterator
in interface BigList<java.lang.Byte>
listIterator
in interface ByteBigList
listIterator
in class AbstractByteBigList
i
- index of first element to be returned from the big-list iterator.BigList.listIterator(long)
public ByteSpliterator spliterator()
ByteBigList
BigList 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 ByteBigList
spliterator
in interface ByteCollection
spliterator
in interface ByteIterable
spliterator
in interface java.lang.Iterable<java.lang.Byte>
spliterator
in interface java.util.Collection<java.lang.Byte>
public ByteBigList subList(long from, long to)
ByteBigList
from
, inclusive, to the index to
, exclusive.subList
in interface BigList<java.lang.Byte>
subList
in interface ByteBigList
subList
in class AbstractByteBigList
from
- the starting element (inclusive).to
- the ending element (exclusive).BigList.subList(long,long)
public boolean addAll(long i, java.util.Collection<? extends java.lang.Byte> c)
AbstractByteBigList
addAll
in interface BigList<java.lang.Byte>
addAll
in class AbstractByteBigList
i
- index at which to insert the first element from the specified collection.c
- collection containing elements to be added to this big list.true
if this big list changed as a result of the callList.addAll(int, Collection)
public boolean addAll(java.util.Collection<? extends java.lang.Byte> c)
AbstractByteBigList
addAll
in interface java.util.Collection<java.lang.Byte>
addAll
in class AbstractByteBigList
public boolean removeAll(java.util.Collection<?> c)
AbstractByteCollection
removeAll
in interface java.util.Collection<java.lang.Byte>
removeAll
in class AbstractByteCollection
public boolean retainAll(java.util.Collection<?> c)
AbstractByteCollection
retainAll
in interface java.util.Collection<java.lang.Byte>
retainAll
in class AbstractByteCollection
public boolean addAll(ByteBigList c)
ByteBigList
addAll
in interface ByteBigList
Collection.addAll(Collection)
public boolean addAll(long i, ByteBigList c)
ByteBigList
addAll
in interface ByteBigList
BigList.addAll(long,Collection)
public boolean addAll(long i, ByteCollection c)
AbstractByteBigList
addAll
in interface ByteBigList
addAll
in class AbstractByteBigList
List.addAll(int,java.util.Collection)
public boolean addAll(ByteCollection c)
AbstractByteBigList
addAll
in interface ByteCollection
addAll
in class AbstractByteBigList
c
- a type-specific collection.true
if this collection changed as a result of the call.Collection.addAll(Collection)
public boolean removeAll(ByteCollection c)
ByteCollection
removeAll
in interface ByteCollection
removeAll
in class AbstractByteCollection
c
- a type-specific collection.true
if this collection changed as a result of the call.Collection.removeAll(Collection)
public boolean retainAll(ByteCollection c)
ByteCollection
retainAll
in interface ByteCollection
retainAll
in class AbstractByteCollection
c
- a type-specific collection.true
if this collection changed as a result of the call.Collection.retainAll(Collection)
public void clear()
AbstractByteBigList
clear
in interface java.util.Collection<java.lang.Byte>
clear
in class AbstractByteBigList
public long size64()
Size64
public java.lang.Object clone()
clone
in class java.lang.Object