public abstract class AbstractByteList extends AbstractByteCollection implements ByteList
ByteList interface.| Constructor and Description |
|---|
AbstractByteList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(byte e)
A Type-Specific implementation of add function that delegates to
ByteList.add(int, byte) |
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 |
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.
it is highly suggested not to use this with Primitives because of boxing. But it is still supported because of ObjectComparason that are custom objects and allow to find the contents.
|
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.
it is highly suggested not to use this with Primitives because of boxing. But it is still supported because of ObjectComparason that are custom objects and allow to find the contents.
|
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
|
add, addAll, contains, contains, containsAll, containsAny, containsAny, remByte, remove, removeAll, retainAll, toByteArray, toByteArrayclear, containsAll, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringadd, add, addAll, addAll, addElements, addElements, addElements, contains, extractElements, get, getByte, getElements, getElements, remove, remove, removeByte, removeElements, replaceAll, replaceBytes, set, set, sort, sort, spliterator, unstableSort, unstableSortcontains, containsAll, containsAny, containsAny, parallelPrimitiveStream, primitiveStream, remByte, remIf, removeAll, removeIf, retainAll, toByteArray, toByteArrayforEach, forEachpublic boolean add(byte e)
ByteList.add(int, byte)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 int indexOf(java.lang.Object o)
@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 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)
ByteList