public abstract class AbstractByteCollection extends java.util.AbstractCollection<java.lang.Byte> implements ByteCollection
ISizeProvider.CollectionSize| 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 |
containsAll(java.util.Collection<?> c) |
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.
|
ByteCollection |
copy()
A Function that does a shallow clone of the Collection itself.
|
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 |
removeAll(ByteCollection c,
ByteConsumer r)
A Type-Specific removeAll function that reduces (un)boxing.
|
boolean |
retainAll(ByteCollection c)
A Type-Specific implementation of retainAll.
|
boolean |
retainAll(ByteCollection c,
ByteConsumer r)
A Type-Specific retainAll function that reduces (un)boxing.
|
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, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAll, addAll, addAll, parallelPrimitiveStream, pour, primitiveStream, remIf, removeIf, spliterator, synchronize, synchronize, unmodifiableclear, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, size, stream, toArray, toArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, forEachIndexed, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, repeat, sortedof, sizepublic 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 addedpublic ByteCollection copy()
ByteCollectioncopy in interface ByteCollection@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 nullpublic boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Byte>containsAll in class java.util.AbstractCollection<java.lang.Byte>@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 removeAll(ByteCollection c, ByteConsumer r)
ByteCollectionremoveAll in interface ByteCollectionc - the collection of elements that should be removedr - elements that got removedCollection.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 boolean retainAll(ByteCollection c, ByteConsumer r)
ByteCollectionretainAll in interface ByteCollectionc - the collection of elements that should be keptr - elements that got removedCollection.retainAll(Collection)public byte[] toByteArray()
toByteArray(byte[]) with a newly created array.toByteArray in interface ByteCollectiontoByteArray in interface ByteIterableCollection.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[])