public static class ByteCollections.SynchronizedCollection extends java.lang.Object implements ByteCollection
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(byte o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(ByteCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
boolean |
addAll(java.util.Collection<? extends java.lang.Byte> c) |
void |
clear() |
boolean |
contains(byte o)
A Type-Specific contains function to reduce (un)boxing
|
boolean |
containsAll(ByteCollection c)
A Type-Specific containsAll function to reduce (un)boxing
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(ByteCollection c)
A Type-Specific containsAny function to reduce (un)boxing
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
boolean |
isEmpty() |
ByteIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remByte(byte o)
A Type-Specific remove function that reduces (un)boxing.
|
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 removeAll function that reduces (un)boxing.
|
boolean |
removeAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
retainAll(ByteCollection c)
A Type-Specific retainAll function that reduces (un)boxing.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
byte[] |
toByteArray()
A Type-Specific toArray function that delegates to
ByteCollection.toByteArray(byte[]) with a newly created array. |
byte[] |
toByteArray(byte[] a)
A Type-Specific toArray function that reduces (un)boxing.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, contains, parallelPrimitiveStream, primitiveStream, removeIf, spliteratorforEach, forEachpublic boolean add(byte o)
ByteCollectionadd in interface ByteCollectiono - the element that should be addedpublic boolean addAll(java.util.Collection<? extends java.lang.Byte> c)
addAll in interface java.util.Collection<java.lang.Byte>public boolean addAll(ByteCollection c)
ByteCollectionaddAll in interface ByteCollectionc - the collection of elements that should be addedpublic boolean contains(byte o)
ByteCollectioncontains in interface ByteCollectiono - the element that is checked for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Byte>@Deprecated public boolean containsAny(java.util.Collection<?> c)
ByteCollectioncontainsAny in interface ByteCollectionc - the collection of elements that should be tested forpublic boolean containsAll(ByteCollection c)
ByteCollectioncontainsAll in interface ByteCollectionc - the collection of elements that should be tested forpublic boolean containsAny(ByteCollection c)
ByteCollectioncontainsAny in interface ByteCollectionc - the collection of elements that should be tested forpublic int size()
size in interface java.util.Collection<java.lang.Byte>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Byte>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 ByteIterableCollection.iterator()@Deprecated public boolean remove(java.lang.Object o)
ByteCollectionThis default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Byte>remove in interface ByteCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Byte>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Byte>public boolean remByte(byte o)
ByteCollectionremByte in interface ByteCollectiono - the element that should be removedCollection.remove(Object)public boolean removeAll(ByteCollection c)
ByteCollectionremoveAll in interface ByteCollectionc - the collection of elements that should be removedCollection.removeAll(Collection)public boolean retainAll(ByteCollection c)
ByteCollectionretainAll in interface ByteCollectionc - the collection of elements that should be keptCollection.retainAll(Collection)public boolean remIf(java.util.function.IntPredicate filter)
ByteCollectionRemoves elements that were selected by the filter
remIf in interface ByteCollectionfilter - Filters the elements that should be removedCollection.removeIf(Predicate)public void clear()
clear in interface java.util.Collection<java.lang.Byte>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Byte>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Byte>public byte[] toByteArray()
ByteCollectionByteCollection.toByteArray(byte[]) with a newly created array.toByteArray in interface ByteCollectionCollection.toArray()public byte[] toByteArray(byte[] a)
ByteCollectiontoByteArray 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[])