public static class ByteCollections.EmptyCollection extends AbstractByteCollection
| Constructor and Description |
|---|
EmptyCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(byte o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(byte[] e,
int offset,
int length)
A Type-Specific Array based addAll method to reduce the amount of Wrapping
|
boolean |
addAll(ByteCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
void |
clear() |
boolean |
contains(byte o)
A Type-Specific implementation of contains.
|
boolean |
containsAll(ByteCollection c)
A Type-Specific implementation of containsAll.
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
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.
|
ByteCollections.EmptyCollection |
copy()
A Function that does a shallow clone of the Collection itself.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
ByteIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remByte(byte o)
A Type-Specific implementation of remove.
|
boolean |
remIf(java.util.function.IntPredicate filter)
A Type-Specific removeIf function to reduce (un)boxing.
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
boolean |
removeAll(ByteCollection c)
A Type-Specific implementation of removeAll.
|
boolean |
removeAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
removeIf(java.util.function.Predicate<? super java.lang.Byte> filter)
Deprecated.
|
boolean |
retainAll(ByteCollection c)
A Type-Specific implementation of retainAll.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
byte[] |
toByteArray()
A Type-Specific implementation of toArray that links to
AbstractByteCollection.toByteArray(byte[]) with a newly created array. |
byte[] |
toByteArray(byte[] a)
A Type-Specific implementation of toArray.
|
add, addAll, contains, removeAll, retainAlladdAll, addAll, parallelPrimitiveStream, pour, primitiveStream, spliterator, synchronize, synchronize, unmodifiablearrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedpublic boolean add(byte o)
ByteCollectiono - the element that should be addedpublic boolean addAll(ByteCollection c)
ByteCollectionaddAll in interface ByteCollectionaddAll in class AbstractByteCollectionc - the collection of elements that should be addedpublic boolean addAll(byte[] e,
int offset,
int length)
ByteCollectione - the elements that should be addedoffset - where to start within the arraylength - how many elements of the array should be addedpublic boolean contains(byte o)
AbstractByteCollectioncontains in interface ByteCollectioncontains in class AbstractByteCollectiono - the element that should be searched for.public boolean containsAll(ByteCollection c)
AbstractByteCollectioncontainsAll in interface ByteCollectioncontainsAll in class AbstractByteCollectionc - the collection that should be checked if it contains all elements.public boolean containsAny(ByteCollection c)
AbstractByteCollectioncontainsAny in interface ByteCollectioncontainsAny in class AbstractByteCollectionc - the elements that should be checked for@Deprecated public boolean containsAny(java.util.Collection<?> c)
AbstractByteCollectioncontainsAny in interface ByteCollectioncontainsAny in class AbstractByteCollectionc - the elements that should be checked for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Byte>containsAll in class AbstractByteCollectionpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Byte>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Byte>equals in class java.lang.Object@Deprecated public boolean remove(java.lang.Object o)
AbstractByteCollectionThis 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 AbstractByteCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Byte>removeAll in class java.util.AbstractCollection<java.lang.Byte>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Byte>retainAll in class java.util.AbstractCollection<java.lang.Byte>@Deprecated public boolean removeIf(java.util.function.Predicate<? super java.lang.Byte> filter)
ByteCollectionThis default implementation delegates to the corresponding type-specific function.
public boolean remByte(byte o)
AbstractByteCollectionremByte in interface ByteCollectionremByte in class AbstractByteCollectiono - the element that is searched forCollection.remove(Object)public boolean removeAll(ByteCollection c)
AbstractByteCollectionremoveAll in interface ByteCollectionremoveAll in class AbstractByteCollectionc - the elements that should be deletedCollection.removeAll(Collection)public boolean retainAll(ByteCollection c)
AbstractByteCollectionretainAll in interface ByteCollectionretainAll in class AbstractByteCollectionc - the elements that should be keptCollection.retainAll(Collection)public boolean remIf(java.util.function.IntPredicate filter)
ByteCollectionRemoves elements that were selected by the filter
filter - Filters the elements that should be removedCollection.removeIf(Predicate)public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Byte>toArray in class java.util.AbstractCollection<java.lang.Byte>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Byte>toArray in class java.util.AbstractCollection<java.lang.Byte>public byte[] toByteArray()
AbstractByteCollectionAbstractByteCollection.toByteArray(byte[]) with a newly created array.toByteArray in interface ByteCollectiontoByteArray in class AbstractByteCollectionCollection.toArray()public byte[] toByteArray(byte[] a)
AbstractByteCollectiontoByteArray in interface ByteCollectiontoByteArray in class AbstractByteCollectiona - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])public 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 AbstractByteCollectionCollection.iterator()public void clear()
clear in interface java.util.Collection<java.lang.Byte>clear in class java.util.AbstractCollection<java.lang.Byte>public int size()
size in interface java.util.Collection<java.lang.Byte>size in class java.util.AbstractCollection<java.lang.Byte>public ByteCollections.EmptyCollection copy()
ByteCollectioncopy in interface ByteCollectioncopy in class AbstractByteCollection