Modul speiger.src.collections
Klasse ByteCollections.SynchronizedCollection
java.lang.Object
speiger.src.collections.bytes.utils.ByteCollections.SynchronizedCollection
- Alle implementierten Schnittstellen:
Iterable<Byte>,Collection<Byte>,ByteCollection,ByteIterable,ISizeProvider
- Umschließende Klasse:
ByteCollections
Synchronized Collection Wrapper for the synchronizedCollection function
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanadd(byte o) A Type-Specific add function to reduce (un)boxingbooleanaddAll(byte[] e, int offset, int length) A Type-Specific Array based addAll method to reduce the amount of WrappingbooleanaddAll(Collection<? extends Byte> c) booleanA Type-Specific addAll function to reduce (un)boxingvoidclear()booleancontains(byte o) A Type-Specific contains function to reduce (un)boxingbooleancontainsAll(Collection<?> c) Veraltet.booleanA Type-Specific containsAll function to reduce (un)boxingbooleancontainsAny(Collection<?> c) Veraltet.booleanA Type-Specific containsAny function to reduce (un)boxingcopy()A Function that does a shallow clone of the Collection itself.intcount(BytePredicate filter) Helper function to reduce stream usage that allows to count the valid elements.booleanbytefindFirst(BytePredicate filter) Helper function to reduce stream usage that allows to filter for the first match.<E> voidforEach(E input, ObjectByteConsumer<E> action) Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.voidVeraltet.voidforEach(ByteConsumer action) A Type Specific foreach function that reduces (un)boxingvoidforEachIndexed(IntByteConsumer action) A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.inthashCode()booleanisEmpty()iterator()Returns a Type-Specific Iterator to reduce (un)boxingbooleanmatchesAll(BytePredicate filter) Helper function to reduce stream usage that allows to filter for all matches.booleanmatchesAny(BytePredicate filter) Helper function to reduce stream usage that allows to filter for any matches.booleanmatchesNone(BytePredicate filter) Helper function to reduce stream usage that allows to filter for no matches.bytereduce(byte identity, ByteByteUnaryOperator operator) Performs a reduction on the elements of this Iterablebytereduce(ByteByteUnaryOperator operator) Performs a reduction on the elements of this IterablebooleanremByte(byte o) A Type-Specific remove function that reduces (un)boxing.booleanremIf(IntPredicate filter) A Type-Specific removeIf function to reduce (un)boxing.booleanVeraltet.booleanremoveAll(Collection<?> c) Veraltet.booleanA Type-Specific removeAll function that reduces (un)boxing.booleanA Type-Specific removeAll function that reduces (un)boxing.booleanretainAll(Collection<?> c) Veraltet.booleanA Type-Specific retainAll function that reduces (un)boxing.booleanA Type-Specific retainAll function that reduces (un)boxing.intsize()Object[]toArray()<T> T[]toArray(T[] a) byte[]A Type-Specific toArray function that delegates toByteCollection.toByteArray(byte[])with a newly created array.byte[]toByteArray(byte[] a) A Type-Specific toArray function that reduces (un)boxing.toString()Von Schnittstelle geerbte Methoden speiger.src.collections.bytes.collections.ByteCollection
add, addAll, addAll, contains, parallelPrimitiveStream, pour, primitiveStream, removeIf, spliterator, synchronize, synchronize, unmodifiableVon Schnittstelle geerbte Methoden speiger.src.collections.bytes.collections.ByteIterable
arrayflatMap, asAsync, distinct, filter, flatMap, limit, map, peek, pourAsList, pourAsSet, repeat, sortedVon Schnittstelle geerbte Methoden java.util.Collection
parallelStream, stream, toArray
-
Methodendetails
-
add
public boolean add(byte o) Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific add function to reduce (un)boxing- Angegeben von:
addin SchnittstelleByteCollection- Parameter:
o- the element that should be added- Gibt zurück:
- true if the element was added to the collection
-
addAll
- Angegeben von:
addAllin SchnittstelleCollection<Byte>
-
addAll
Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific addAll function to reduce (un)boxing- Angegeben von:
addAllin SchnittstelleByteCollection- Parameter:
c- the collection of elements that should be added- Gibt zurück:
- true if elements were added into the collection
-
addAll
public boolean addAll(byte[] e, int offset, int length) Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific Array based addAll method to reduce the amount of Wrapping- Angegeben von:
addAllin SchnittstelleByteCollection- Parameter:
e- the elements that should be addedoffset- where to start within the arraylength- how many elements of the array should be added- Gibt zurück:
- if the collection was modified
-
contains
public boolean contains(byte o) Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific contains function to reduce (un)boxing- Angegeben von:
containsin SchnittstelleByteCollection- Parameter:
o- the element that is checked for- Gibt zurück:
- true if the element is found in the collection
-
containsAll
Veraltet.- Angegeben von:
containsAllin SchnittstelleCollection<Byte>
-
containsAny
Veraltet.Beschreibung aus Schnittstelle kopiert:ByteCollectionReturns true if any element of the Collection is found in the provided collection. A Small Optimization function to find out of any element is present when comparing collections and not all of them.- Angegeben von:
containsAnyin SchnittstelleByteCollection- Parameter:
c- the collection of elements that should be tested for- Gibt zurück:
- true if any element was found.
-
containsAll
Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific containsAll function to reduce (un)boxing- Angegeben von:
containsAllin SchnittstelleByteCollection- Parameter:
c- the collection of elements that should be tested for- Gibt zurück:
- true if all the element is found in the collection
-
containsAny
Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific containsAny function to reduce (un)boxing- Angegeben von:
containsAnyin SchnittstelleByteCollection- Parameter:
c- the collection of elements that should be tested for- Gibt zurück:
- true if any element was found
-
size
public int size()- Angegeben von:
sizein SchnittstelleCollection<Byte>- Angegeben von:
sizein SchnittstelleISizeProvider- Gibt zurück:
- the size of the implementing Collection
-
isEmpty
public boolean isEmpty()- Angegeben von:
isEmptyin SchnittstelleCollection<Byte>
-
iterator
Beschreibung aus Schnittstelle kopiert:ByteCollectionReturns a Type-Specific Iterator to reduce (un)boxing- Angegeben von:
iteratorin SchnittstelleByteCollection- Angegeben von:
iteratorin SchnittstelleByteIterable- Angegeben von:
iteratorin SchnittstelleCollection<Byte>- Angegeben von:
iteratorin SchnittstelleIterable<Byte>- Gibt zurück:
- a iterator of the collection
- Siehe auch:
-
copy
Beschreibung aus Schnittstelle kopiert:ByteCollectionA Function that does a shallow clone of the Collection itself. This function is more optimized then a copy constructor since the Collection does not have to be unsorted/resorted. It can be compared to Cloneable but with less exception risk- Angegeben von:
copyin SchnittstelleByteCollection- Gibt zurück:
- a Shallow Copy of the collection
-
remove
Veraltet.Beschreibung aus Schnittstelle kopiert:ByteCollectionThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
removein SchnittstelleByteCollection- Angegeben von:
removein SchnittstelleCollection<Byte>
-
removeAll
Veraltet.- Angegeben von:
removeAllin SchnittstelleCollection<Byte>
-
retainAll
Veraltet.- Angegeben von:
retainAllin SchnittstelleCollection<Byte>
-
remByte
public boolean remByte(byte o) Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific remove function that reduces (un)boxing.- Angegeben von:
remBytein SchnittstelleByteCollection- Parameter:
o- the element that should be removed- Gibt zurück:
- true if the element was removed
- Siehe auch:
-
removeAll
Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific removeAll function that reduces (un)boxing.- Angegeben von:
removeAllin SchnittstelleByteCollection- Parameter:
c- the collection of elements that should be removed- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
removeAll
Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific removeAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.- Angegeben von:
removeAllin SchnittstelleByteCollection- Parameter:
c- the collection of elements that should be removedr- elements that got removed- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
retainAll
Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific retainAll function that reduces (un)boxing.- Angegeben von:
retainAllin SchnittstelleByteCollection- Parameter:
c- the collection of elements that should be kept- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
retainAll
Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific retainAll function that reduces (un)boxing. It also notifies the remover of which exact element is going to be removed.- Angegeben von:
retainAllin SchnittstelleByteCollection- Parameter:
c- the collection of elements that should be keptr- elements that got removed- Gibt zurück:
- true if any element was removed
- Siehe auch:
-
remIf
Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific removeIf function to reduce (un)boxing.Removes elements that were selected by the filter
- Angegeben von:
remIfin SchnittstelleByteCollection- Parameter:
filter- Filters the elements that should be removed- Gibt zurück:
- true if the collection was modified
- Siehe auch:
-
clear
public void clear()- Angegeben von:
clearin SchnittstelleCollection<Byte>
-
toArray
- Angegeben von:
toArrayin SchnittstelleCollection<Byte>
-
toArray
public <T> T[] toArray(T[] a) - Angegeben von:
toArrayin SchnittstelleCollection<Byte>
-
toByteArray
public byte[] toByteArray()Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific toArray function that delegates toByteCollection.toByteArray(byte[])with a newly created array.- Angegeben von:
toByteArrayin SchnittstelleByteCollection- Angegeben von:
toByteArrayin SchnittstelleByteIterable- Gibt zurück:
- an array containing all of the elements in this collection
- Siehe auch:
-
toByteArray
public byte[] toByteArray(byte[] a) Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific toArray function that reduces (un)boxing.- Angegeben von:
toByteArrayin SchnittstelleByteCollection- Parameter:
a- array that the elements should be injected to. If null or to small a new array with the right size is created- Gibt zurück:
- an array containing all of the elements in this collection
- Siehe auch:
-
forEach
Beschreibung aus Schnittstelle kopiert:ByteIterableA Type Specific foreach function that reduces (un)boxing- Angegeben von:
forEachin SchnittstelleByteIterable- Parameter:
action- The action to be performed for each element- Siehe auch:
-
forEach
Veraltet.Beschreibung aus Schnittstelle kopiert:ByteIterableThis default implementation delegates to the corresponding type-specific function.
- Angegeben von:
forEachin SchnittstelleByteIterable- Angegeben von:
forEachin SchnittstelleIterable<Byte>
-
forEachIndexed
Beschreibung aus Schnittstelle kopiert:ByteIterableA Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.- Angegeben von:
forEachIndexedin SchnittstelleByteIterable- Parameter:
action- The action to be performed for each element
-
hashCode
public int hashCode()- Angegeben von:
hashCodein SchnittstelleCollection<Byte>- Setzt außer Kraft:
hashCodein KlasseObject
-
equals
- Angegeben von:
equalsin SchnittstelleCollection<Byte>- Setzt außer Kraft:
equalsin KlasseObject
-
toString
-
forEach
Beschreibung aus Schnittstelle kopiert:ByteIterableHelper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.- Angegeben von:
forEachin SchnittstelleByteIterable- Typparameter:
E- the generic type of the Object- Parameter:
input- the object that should be includedaction- The action to be performed for each element
-
matchesAny
Beschreibung aus Schnittstelle kopiert:ByteIterableHelper function to reduce stream usage that allows to filter for any matches.- Angegeben von:
matchesAnyin SchnittstelleByteIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if any matches were found
-
matchesNone
Beschreibung aus Schnittstelle kopiert:ByteIterableHelper function to reduce stream usage that allows to filter for no matches.- Angegeben von:
matchesNonein SchnittstelleByteIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if no matches were found
-
matchesAll
Beschreibung aus Schnittstelle kopiert:ByteIterableHelper function to reduce stream usage that allows to filter for all matches.- Angegeben von:
matchesAllin SchnittstelleByteIterable- Parameter:
filter- that should be applied- Gibt zurück:
- true if all matches.
-
reduce
Beschreibung aus Schnittstelle kopiert:ByteIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleByteIterable- Parameter:
identity- the start valueoperator- the operation that should be applied- Gibt zurück:
- the reduction result, returns identity if nothing was found
-
reduce
Beschreibung aus Schnittstelle kopiert:ByteIterablePerforms a reduction on the elements of this Iterable- Angegeben von:
reducein SchnittstelleByteIterable- Parameter:
operator- the operation that should be applied- Gibt zurück:
- the reduction result, returns null value if nothing was found
-
findFirst
Beschreibung aus Schnittstelle kopiert:ByteIterableHelper function to reduce stream usage that allows to filter for the first match.- Angegeben von:
findFirstin SchnittstelleByteIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the found value or the null equivalent variant.
-
count
Beschreibung aus Schnittstelle kopiert:ByteIterableHelper function to reduce stream usage that allows to count the valid elements.- Angegeben von:
countin SchnittstelleByteIterable- Parameter:
filter- that should be applied- Gibt zurück:
- the amount of Valid Elements
-