Modul speiger.src.collections
Klasse ByteCollections.EmptyCollection
java.lang.Object
java.util.AbstractCollection<Byte>
speiger.src.collections.bytes.collections.AbstractByteCollection
speiger.src.collections.bytes.utils.ByteCollections.EmptyCollection
- Alle implementierten Schnittstellen:
Iterable<Byte>,Collection<Byte>,ByteCollection,ByteIterable,ISizeProvider
- Umschließende Klasse:
ByteCollections
Empty Collection implementation for the empty collection function
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Konstruktorübersicht
Konstruktoren -
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 WrappingbooleanA Type-Specific addAll function to reduce (un)boxingvoidclear()booleancontains(byte o) A Type-Specific implementation of contains.booleancontainsAll(Collection<?> c) Veraltet.booleanA Type-Specific implementation of containsAll.booleancontainsAny(Collection<?> c) Veraltet.booleanThis implementation iterates over the elements of the collection and checks if they are stored in this collection.copy()A Function that does a shallow clone of the Collection itself.booleaninthashCode()iterator()Returns a Type-Specific Iterator to reduce (un)boxingbooleanremByte(byte o) A Type-Specific implementation of remove.booleanremIf(IntPredicate filter) A Type-Specific removeIf function to reduce (un)boxing.booleanVeraltet.booleanremoveAll(Collection<?> c) Veraltet.booleanA Type-Specific implementation of removeAll.booleanVeraltet.booleanretainAll(Collection<?> c) Veraltet.booleanA Type-Specific implementation of retainAll.intsize()Object[]toArray()<T> T[]toArray(T[] a) byte[]A Type-Specific implementation of toArray that links toAbstractByteCollection.toByteArray(byte[])with a newly created array.byte[]toByteArray(byte[] a) A Type-Specific implementation of toArray.Von Klasse geerbte Methoden speiger.src.collections.bytes.collections.AbstractByteCollection
add, addAll, contains, removeAll, retainAllVon Klasse geerbte Methoden java.util.AbstractCollection
isEmpty, toStringVon Schnittstelle geerbte Methoden speiger.src.collections.bytes.collections.ByteCollection
addAll, addAll, parallelPrimitiveStream, pour, primitiveStream, spliterator, synchronize, synchronize, unmodifiableVon Schnittstelle geerbte Methoden speiger.src.collections.bytes.collections.ByteIterable
arrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, forEachIndexed, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, repeat, sortedVon Schnittstelle geerbte Methoden java.util.Collection
isEmpty, parallelStream, stream, toArray
-
Konstruktordetails
-
EmptyCollection
public EmptyCollection()
-
-
Methodendetails
-
add
public boolean add(byte o) Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific add function to reduce (un)boxing- Parameter:
o- the element that should be added- Gibt zurück:
- true if the element was added to the collection
-
addAll
Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific addAll function to reduce (un)boxing- Angegeben von:
addAllin SchnittstelleByteCollection- Setzt außer Kraft:
addAllin KlasseAbstractByteCollection- 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- 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 Klasse kopiert:AbstractByteCollectionA Type-Specific implementation of contains. This implementation iterates over the elements and returns true if the value match.- Angegeben von:
containsin SchnittstelleByteCollection- Setzt außer Kraft:
containsin KlasseAbstractByteCollection- Parameter:
o- the element that should be searched for.- Gibt zurück:
- true if the value was found.
-
containsAll
Beschreibung aus Klasse kopiert:AbstractByteCollectionA Type-Specific implementation of containsAll. This implementation iterates over all elements and checks all elements are present in the other collection.- Angegeben von:
containsAllin SchnittstelleByteCollection- Setzt außer Kraft:
containsAllin KlasseAbstractByteCollection- Parameter:
c- the collection that should be checked if it contains all elements.- Gibt zurück:
- true if all elements were found in the collection
-
containsAny
Beschreibung aus Klasse kopiert:AbstractByteCollectionThis implementation iterates over the elements of the collection and checks if they are stored in this collection.- Angegeben von:
containsAnyin SchnittstelleByteCollection- Setzt außer Kraft:
containsAnyin KlasseAbstractByteCollection- Parameter:
c- the elements that should be checked for- Gibt zurück:
- true if any element is in this collection
-
containsAny
Veraltet.Beschreibung aus Klasse kopiert:AbstractByteCollectionThis implementation iterates over the elements of the collection and checks if they are stored in this collection- Angegeben von:
containsAnyin SchnittstelleByteCollection- Setzt außer Kraft:
containsAnyin KlasseAbstractByteCollection- Parameter:
c- the elements that should be checked for- Gibt zurück:
- true if any element is in this collection
-
containsAll
Veraltet.- Angegeben von:
containsAllin SchnittstelleCollection<Byte>- Setzt außer Kraft:
containsAllin KlasseAbstractByteCollection
-
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
-
remove
Veraltet.Beschreibung aus Klasse kopiert:AbstractByteCollectionThis default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
removein SchnittstelleByteCollection- Angegeben von:
removein SchnittstelleCollection<Byte>- Setzt außer Kraft:
removein KlasseAbstractByteCollection
-
removeAll
Veraltet.- Angegeben von:
removeAllin SchnittstelleCollection<Byte>- Setzt außer Kraft:
removeAllin KlasseAbstractCollection<Byte>
-
retainAll
Veraltet.- Angegeben von:
retainAllin SchnittstelleCollection<Byte>- Setzt außer Kraft:
retainAllin KlasseAbstractCollection<Byte>
-
removeIf
Veraltet.Beschreibung aus Schnittstelle kopiert:ByteCollectionThis default implementation delegates to the corresponding type-specific function.
-
remByte
public boolean remByte(byte o) Beschreibung aus Klasse kopiert:AbstractByteCollectionA Type-Specific implementation of remove. This implementation iterates over the elements until it finds the element that is searched for or it runs out of elements. It stops after finding the first element- Angegeben von:
remBytein SchnittstelleByteCollection- Setzt außer Kraft:
remBytein KlasseAbstractByteCollection- Parameter:
o- the element that is searched for- Gibt zurück:
- true if the element was found and removed.
- Siehe auch:
-
removeAll
Beschreibung aus Klasse kopiert:AbstractByteCollectionA Type-Specific implementation of removeAll. This Implementation iterates over all elements and removes them as they were found in the other collection.- Angegeben von:
removeAllin SchnittstelleByteCollection- Setzt außer Kraft:
removeAllin KlasseAbstractByteCollection- Parameter:
c- the elements that should be deleted- Gibt zurück:
- true if the collection was modified.
- Siehe auch:
-
retainAll
Beschreibung aus Klasse kopiert:AbstractByteCollectionA Type-Specific implementation of retainAll. This Implementation iterates over all elements and removes them as they were not found in the other collection.- Angegeben von:
retainAllin SchnittstelleByteCollection- Setzt außer Kraft:
retainAllin KlasseAbstractByteCollection- Parameter:
c- the elements that should be kept- Gibt zurück:
- true if the collection was modified.
- Siehe auch:
-
remIf
Beschreibung aus Schnittstelle kopiert:ByteCollectionA Type-Specific removeIf function to reduce (un)boxing.Removes elements that were selected by the filter
- Parameter:
filter- Filters the elements that should be removed- Gibt zurück:
- true if the collection was modified
- Siehe auch:
-
toArray
- Angegeben von:
toArrayin SchnittstelleCollection<Byte>- Setzt außer Kraft:
toArrayin KlasseAbstractCollection<Byte>
-
toArray
public <T> T[] toArray(T[] a) - Angegeben von:
toArrayin SchnittstelleCollection<Byte>- Setzt außer Kraft:
toArrayin KlasseAbstractCollection<Byte>
-
toByteArray
public byte[] toByteArray()Beschreibung aus Klasse kopiert:AbstractByteCollectionA Type-Specific implementation of toArray that links toAbstractByteCollection.toByteArray(byte[])with a newly created array.- Angegeben von:
toByteArrayin SchnittstelleByteCollection- Angegeben von:
toByteArrayin SchnittstelleByteIterable- Setzt außer Kraft:
toByteArrayin KlasseAbstractByteCollection- Gibt zurück:
- an array containing all of the elements in this collection
- Siehe auch:
-
toByteArray
public byte[] toByteArray(byte[] a) Beschreibung aus Klasse kopiert:AbstractByteCollectionA Type-Specific implementation of toArray. This implementation iterates over all elements and unwraps them into primitive type.- Angegeben von:
toByteArrayin SchnittstelleByteCollection- Setzt außer Kraft:
toByteArrayin KlasseAbstractByteCollection- 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:
-
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>- Angegeben von:
iteratorin KlasseAbstractByteCollection- Gibt zurück:
- a iterator of the collection
- Siehe auch:
-
clear
public void clear()- Angegeben von:
clearin SchnittstelleCollection<Byte>- Setzt außer Kraft:
clearin KlasseAbstractCollection<Byte>
-
size
public int size()- Angegeben von:
sizein SchnittstelleCollection<Byte>- Angegeben von:
sizein SchnittstelleISizeProvider- Angegeben von:
sizein KlasseAbstractCollection<Byte>- Gibt zurück:
- the size of the implementing Collection
-
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- Setzt außer Kraft:
copyin KlasseAbstractByteCollection- Gibt zurück:
- a Shallow Copy of the collection
-