public abstract class AbstractByteList extends AbstractByteCollection implements ByteList
ByteList interface.ISizeProvider.CollectionSize| Constructor and Description |
|---|
AbstractByteList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(byte e)
A Type-Specific implementation of add function that delegates to
List.add(int, Object) |
void |
add(int index,
java.lang.Byte element)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(ByteCollection c)
A Type-Specific implementation that iterates over the elements and adds them.
|
boolean |
addAll(ByteList c)
A Type-Specific implementation that iterates over the elements and adds them.
|
boolean |
addAll(java.util.Collection<? extends java.lang.Byte> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
AbstractByteList |
copy()
A Function that does a shallow clone of the Collection itself.
|
boolean |
equals(java.lang.Object o)
Compares if the list are the same.
|
int |
hashCode()
Generates the hashcode based on the values stored in the list.
|
int |
indexOf(byte e)
The indexOf implementation iterates over all elements and compares them to the search value.
|
int |
indexOf(java.lang.Object o)
Deprecated.
|
ByteIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
int |
lastIndexOf(byte e)
The lastIndexOf implementation iterates over all elements and compares them to the search value.
|
int |
lastIndexOf(java.lang.Object o)
Deprecated.
|
ByteListIterator |
listIterator()
A Type-Specific Iterator of listIterator
|
ByteListIterator |
listIterator(int index)
A Type-Specific Iterator of listIterator
|
void |
size(int size)
A function to ensure the elements are within the requested size.
|
ByteList |
subList(int fromIndex,
int toIndex)
A Type-Specific List of subList
|
boolean |
swapRemoveByte(byte e)
A Highly Optimized remove function that removes the desired element.
|
add, contains, contains, containsAll, containsAll, containsAny, containsAny, remByte, remove, removeAll, removeAll, retainAll, retainAll, toByteArray, toByteArrayclear, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringadd, add, addAll, addAll, addElements, addElements, addElements, addIfAbsent, addIfPresent, contains, extractElements, fillBuffer, forEachIndexed, get, getByte, getElements, getElements, remove, remove, removeByte, removeElements, replaceAll, replaceBytes, set, set, sort, sort, spliterator, swapRemove, synchronize, synchronize, unmodifiable, unstableSort, unstableSortaddAll, addAll, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, pour, primitiveStream, remByte, remIf, removeAll, removeAll, removeIf, retainAll, retainAll, toByteArray, toByteArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, repeat, sortedof, sizepublic boolean add(byte e)
List.add(int, Object)add in interface ByteCollectionadd in interface ByteListe - the element to addList.add(Object)@Deprecated
public void add(int index,
java.lang.Byte element)
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.List<java.lang.Byte>public boolean addAll(ByteCollection c)
addAll in interface ByteCollectionaddAll in class AbstractByteCollectionc - the elements that wants to be addedpublic boolean addAll(ByteList c)
@Deprecated public boolean addAll(java.util.Collection<? extends java.lang.Byte> c)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
addAll in interface java.util.Collection<java.lang.Byte>addAll in interface java.util.List<java.lang.Byte>addAll in class AbstractByteCollection@Deprecated public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<java.lang.Byte>indexOf in interface ByteListo - the value that the index is searched for.@Deprecated public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<java.lang.Byte>lastIndexOf in interface ByteListo - the value that the index is searched for.public int indexOf(byte e)
public int lastIndexOf(byte e)
lastIndexOf in interface ByteListe - the value that the index is searched for.public boolean swapRemoveByte(byte e)
ByteListswapRemoveByte in interface ByteListe - the element that should be removedpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Byte>equals in interface java.util.List<java.lang.Byte>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Byte>hashCode in interface java.util.List<java.lang.Byte>hashCode in class java.lang.Objectpublic ByteList subList(int fromIndex, int toIndex)
ByteListpublic ByteIterator iterator()
ByteCollectioniterator in interface java.lang.Iterable<java.lang.Byte>iterator in interface java.util.Collection<java.lang.Byte>iterator in interface java.util.List<java.lang.Byte>iterator in interface ByteCollectioniterator in interface ByteIterableiterator in class AbstractByteCollectionCollection.iterator()public ByteListIterator listIterator()
ByteListlistIterator in interface java.util.List<java.lang.Byte>listIterator in interface ByteListList.listIterator()public ByteListIterator listIterator(int index)
ByteListlistIterator in interface java.util.List<java.lang.Byte>listIterator in interface ByteListList.listIterator(int)public void size(int size)
ByteListpublic AbstractByteList copy()
ByteCollectioncopy in interface ByteCollectioncopy in interface ByteListcopy in class AbstractByteCollection