public abstract class AbstractByteCollection extends java.util.AbstractCollection<java.lang.Byte> implements ByteCollection
| Constructor and Description |
|---|
AbstractByteCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Byte e)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(ByteCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
boolean |
addAll(java.util.Collection<? extends java.lang.Byte> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
contains(byte e)
A Type-Specific implementation of contains.
|
boolean |
contains(java.lang.Object e)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
containsAll(ByteCollection c)
A Type-Specific implementation of containsAll.
|
boolean |
containsAny(ByteCollection c)
This implementation iterates over the elements of the collection and checks if they are stored in this collection.
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
if this is a primitive collection
|
abstract ByteIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remByte(byte e)
A Type-Specific implementation of remove.
|
boolean |
remove(java.lang.Object e)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
removeAll(ByteCollection c)
A Type-Specific implementation of removeAll.
|
boolean |
retainAll(ByteCollection c)
A Type-Specific implementation of retainAll.
|
byte[] |
toByteArray()
A Type-Specific implementation of toArray that links to
toByteArray(byte[]) with a newly created array. |
byte[] |
toByteArray(byte[] a)
A Type-Specific implementation of toArray.
|
clear, containsAll, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, parallelPrimitiveStream, primitiveStream, remIf, removeIf, spliteratorclear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, size, stream, toArray, toArrayforEach, forEachpublic abstract ByteIterator iterator()
ByteCollectioniterator in interface java.lang.Iterable<java.lang.Byte>iterator in interface java.util.Collection<java.lang.Byte>iterator in interface ByteCollectioniterator in interface ByteIterableiterator in class java.util.AbstractCollection<java.lang.Byte>Collection.iterator()@Deprecated public boolean add(java.lang.Byte e)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.Collection<java.lang.Byte>add in interface ByteCollectionadd in class java.util.AbstractCollection<java.lang.Byte>public boolean addAll(ByteCollection c)
ByteCollectionaddAll in interface ByteCollectionc - the collection of elements that should be added@Deprecated public boolean contains(java.lang.Object e)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
contains in interface java.util.Collection<java.lang.Byte>contains in interface ByteCollectioncontains in class java.util.AbstractCollection<java.lang.Byte>public boolean contains(byte e)
contains in interface ByteCollectione - the element that should be searched for.@Deprecated public boolean addAll(java.util.Collection<? extends java.lang.Byte> c)
This default implementation delegates to the corresponding type-specific function.
addAll in interface java.util.Collection<java.lang.Byte>addAll in class java.util.AbstractCollection<java.lang.Byte>public boolean containsAll(ByteCollection c)
containsAll in interface ByteCollectionc - the collection that should be checked if it contains all elements.java.lang.NullPointerException - if the collection is null@Deprecated public boolean containsAny(java.util.Collection<?> c)
containsAny in interface ByteCollectionc - the elements that should be checked forjava.lang.NullPointerException - if the collection is nullpublic boolean containsAny(ByteCollection c)
containsAny in interface ByteCollectionc - the elements that should be checked forjava.lang.NullPointerException - if the collection is null@Deprecated public boolean remove(java.lang.Object e)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Byte>remove in interface ByteCollectionremove in class java.util.AbstractCollection<java.lang.Byte>public boolean remByte(byte e)
remByte in interface ByteCollectione - the element that is searched forCollection.remove(Object)public boolean removeAll(ByteCollection c)
removeAll in interface ByteCollectionc - the elements that should be deletedjava.lang.NullPointerException - if the collection is nullCollection.removeAll(Collection)public boolean retainAll(ByteCollection c)
retainAll in interface ByteCollectionc - the elements that should be keptjava.lang.NullPointerException - if the collection is nullCollection.retainAll(Collection)public byte[] toByteArray()
toByteArray(byte[]) with a newly created array.toByteArray in interface ByteCollectionCollection.toArray()public byte[] toByteArray(byte[] a)
toByteArray in interface ByteCollectiona - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])