public interface ByteCollection extends java.util.Collection<java.lang.Byte>, ByteIterable
Collection that reduces (un)boxing| Modifier and Type | Method and Description |
|---|---|
boolean |
add(byte o)
A Type-Specific add function to reduce (un)boxing
|
default boolean |
add(java.lang.Byte o)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(ByteCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
boolean |
contains(byte o)
A Type-Specific contains function to reduce (un)boxing
|
default boolean |
contains(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
containsAll(ByteCollection c)
A Type-Specific containsAll function to reduce (un)boxing
|
boolean |
containsAny(ByteCollection c)
A Type-Specific containsAny function to reduce (un)boxing
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
ByteIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
default java.util.stream.IntStream |
parallelPrimitiveStream()
Returns a Java-Type-Specific Parallel Stream to reduce boxing/unboxing.
|
default java.util.stream.IntStream |
primitiveStream()
Returns a Java-Type-Specific Stream to reduce boxing/unboxing.
|
boolean |
remByte(byte o)
A Type-Specific remove function that reduces (un)boxing.
|
default boolean |
remIf(java.util.function.IntPredicate filter)
A Type-Specific removeIf function to reduce (un)boxing.
|
default boolean |
remove(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
removeAll(ByteCollection c)
A Type-Specific removeAll function that reduces (un)boxing.
|
default boolean |
removeIf(java.util.function.Predicate<? super java.lang.Byte> filter)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
retainAll(ByteCollection c)
A Type-Specific retainAll function that reduces (un)boxing.
|
default ByteSplititerator |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
byte[] |
toByteArray()
A Type-Specific toArray function that delegates to
toByteArray(byte[]) with a newly created array. |
byte[] |
toByteArray(byte[] a)
A Type-Specific toArray function that reduces (un)boxing.
|
addAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, size, stream, toArray, toArrayforEach, forEachboolean add(byte o)
o - the element that should be addedboolean addAll(ByteCollection c)
c - the collection of elements that should be addedboolean contains(byte o)
o - the element that is checked forboolean containsAll(ByteCollection c)
c - the collection of elements that should be tested forboolean containsAny(ByteCollection c)
c - the collection of elements that should be tested for@Deprecated boolean containsAny(java.util.Collection<?> c)
c - the collection of elements that should be tested forboolean remByte(byte o)
o - the element that should be removedCollection.remove(Object)boolean removeAll(ByteCollection c)
c - the collection of elements that should be removedCollection.removeAll(Collection)boolean retainAll(ByteCollection c)
c - the collection of elements that should be keptCollection.retainAll(Collection)byte[] toByteArray()
toByteArray(byte[]) with a newly created array.Collection.toArray()byte[] toByteArray(byte[] a)
a - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])@Deprecated default boolean removeIf(java.util.function.Predicate<? super java.lang.Byte> filter)
This default implementation delegates to the corresponding type-specific function.
removeIf in interface java.util.Collection<java.lang.Byte>default boolean remIf(java.util.function.IntPredicate filter)
Removes elements that were selected by the filter
filter - Filters the elements that should be removedjava.lang.NullPointerException - if filter is nullCollection.removeIf(Predicate)@Deprecated default boolean add(java.lang.Byte o)
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.Collection<java.lang.Byte>@Deprecated default boolean contains(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
contains in interface java.util.Collection<java.lang.Byte>@Deprecated default boolean remove(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Byte>ByteIterator iterator()
iterator in interface ByteIterableiterator in interface java.util.Collection<java.lang.Byte>iterator in interface java.lang.Iterable<java.lang.Byte>Collection.iterator()default java.util.stream.IntStream primitiveStream()
default java.util.stream.IntStream parallelPrimitiveStream()
default ByteSplititerator spliterator()
spliterator in interface ByteIterablespliterator in interface java.util.Collection<java.lang.Byte>spliterator in interface java.lang.Iterable<java.lang.Byte>