public static class ByteBigLists.Singleton extends AbstractByteBigList implements Serializable, Cloneable
This class may be useful to implement your own in case you subclass a type-specific big list.
AbstractByteBigList.ByteSubList| Modifier | Constructor and Description |
|---|---|
protected |
Singleton(byte element) |
| 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(Collection<? extends 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,
Collection<? extends Byte> c)
Adds all of the elements in the specified collection to this list (optional operation).
|
void |
clear() |
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.
|
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(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(Collection<?> c) |
long |
size64()
Returns the size of this data structure as a long.
|
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, ensureIndex, ensureRestrictedIndex, equals, get, getElements, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, peek, peekByte, pop, popByte, push, push, remove, removeElements, set, set, size, size, top, topByte, toStringadd, contains, containsAll, remove, toArray, toByteArraycontainsAll, isEmpty, toArray, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitadd, contains, containsAll, remove, removeIf, removeIf, toArray, toByteArraycontainsAll, isEmpty, parallelStream, spliterator, stream, toArray, toArrayforEach, forEachpublic byte getByte(long i)
ByteBigListgetByte in interface ByteBigListBigList.get(long)public boolean rem(byte k)
AbstractByteBigListThis implementation delegates to indexOf().
rem in interface ByteCollectionrem in class AbstractByteBigListCollection.remove(Object)public byte removeByte(long i)
AbstractByteBigListThis implementation always throws an UnsupportedOperationException.
removeByte in interface ByteBigListremoveByte in class AbstractByteBigListBigList.remove(long)public boolean contains(byte k)
AbstractByteBigListThis implementation delegates to indexOf().
contains in interface ByteCollectioncontains in class AbstractByteBigListCollection.contains(Object)public byte[] toByteArray()
ByteCollectiontoByteArray in interface ByteCollectiontoByteArray in class AbstractByteCollectionCollection.toArray()public ByteBigListIterator listIterator()
AbstractByteBigListNote that this specification strengthens the one given in BigList.listIterator().
This implementation delegates to listIterator(0).
listIterator in interface BigList<Byte>listIterator in interface ByteBigListlistIterator in class AbstractByteBigListBigList.listIterator()public ByteBigListIterator listIterator(long i)
AbstractByteBigListNote that this specification strengthens the one given in BigList.listIterator(long).
This implementation is based on the random-access methods.
listIterator in interface BigList<Byte>listIterator in interface ByteBigListlistIterator in class AbstractByteBigListi - index of first element to be returned from the big-list iterator.BigList.listIterator(long)public ByteBigList subList(long from, long to)
ByteBigListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in BigList.subList(long,long).
subList in interface BigList<Byte>subList in interface ByteBigListsubList in class AbstractByteBigListfrom - the starting element (inclusive).to - the ending element (exclusive).BigList.subList(long,long)public boolean addAll(long i,
Collection<? extends Byte> c)
AbstractByteBigListaddAll in interface BigList<Byte>addAll in class AbstractByteBigListi - 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(Collection<? extends Byte> c)
AbstractByteBigListThis implementation delegates to the type-specific version of BigList.addAll(long, Collection).
addAll in interface Collection<Byte>addAll in class AbstractByteBigListpublic boolean removeAll(Collection<?> c)
removeAll in interface Collection<Byte>removeAll in class AbstractCollection<Byte>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<Byte>retainAll in class AbstractCollection<Byte>public boolean addAll(ByteBigList c)
AbstractByteBigListThis implementation delegates to the type-specific list version of AbstractByteBigList.addAll(long, Collection).
addAll in interface ByteBigListaddAll in class AbstractByteBigListList.addAll(int,java.util.Collection)public boolean addAll(long i,
ByteBigList c)
AbstractByteBigListThis implementation delegates to the type-specific version of AbstractByteBigList.addAll(long, Collection).
addAll in interface ByteBigListaddAll in class AbstractByteBigListList.addAll(int,java.util.Collection)public boolean addAll(long i,
ByteCollection c)
AbstractByteBigListThis implementation delegates to the type-specific version of AbstractByteBigList.addAll(long, Collection).
addAll in interface ByteBigListaddAll in class AbstractByteBigListList.addAll(int,java.util.Collection)public boolean addAll(ByteCollection c)
AbstractByteBigListThis implementation delegates to the type-specific version of AbstractByteBigList.addAll(long, Collection).
addAll in interface ByteCollectionaddAll in class AbstractByteBigListc - a type-specific collection.true if this collection changed as a result of the call.Collection.addAll(Collection)public boolean removeAll(ByteCollection c)
ByteCollectionremoveAll in interface ByteCollectionremoveAll in class AbstractByteCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.removeAll(Collection)public boolean retainAll(ByteCollection c)
ByteCollectionretainAll in interface ByteCollectionretainAll in class AbstractByteCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.retainAll(Collection)public void clear()
AbstractByteBigListThis implementation delegates to AbstractByteBigList.removeElements(long, long).
clear in interface Collection<Byte>clear in class AbstractByteBigListpublic long size64()
Size64Copyright © 2020. All rights reserved.