Modul speiger.src.collections
Klasse AbstractByteCollection
- Alle implementierten Schnittstellen:
Iterable<Byte>,Collection<Byte>,ByteCollection,ByteIterable,ISizeProvider
- Bekannte direkte Unterklassen:
AbstractByteList,AbstractByteSet,ByteCollections.EmptyCollection
public abstract class AbstractByteCollection
extends AbstractCollection<Byte>
implements ByteCollection
Abstract Type Specific Collection that reduces boxing/unboxing
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen speiger.src.collections.utils.ISizeProvider
ISizeProvider.CollectionSize -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanVeraltet.Please use the corresponding type-specific function instead.booleanaddAll(Collection<? extends Byte> c) Veraltet.Please use the corresponding type-specific function instead.booleanA Type-Specific addAll function to reduce (un)boxingbooleancontains(byte e) A Type-Specific implementation of contains.booleanVeraltet.Please use the corresponding type-specific function instead.booleancontainsAll(Collection<?> c) 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.abstract ByteIteratoriterator()Returns a Type-Specific Iterator to reduce (un)boxingbooleanremByte(byte e) A Type-Specific implementation of remove.booleanVeraltet.Please use the corresponding type-specific function instead.booleanA Type-Specific implementation of removeAll.booleanA Type-Specific removeAll function that reduces (un)boxing.booleanA Type-Specific implementation of retainAll.booleanA Type-Specific retainAll function that reduces (un)boxing.byte[]A Type-Specific implementation of toArray that links totoByteArray(byte[])with a newly created array.byte[]toByteArray(byte[] a) A Type-Specific implementation of toArray.Von Klasse geerbte Methoden java.util.AbstractCollection
clear, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringVon Klasse geerbte Methoden java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden speiger.src.collections.bytes.collections.ByteCollection
add, addAll, addAll, addAll, parallelPrimitiveStream, pour, primitiveStream, remIf, removeIf, 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
clear, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, size, stream, toArray, toArray, toArrayVon Schnittstelle geerbte Methoden speiger.src.collections.utils.ISizeProvider
size
-
Konstruktordetails
-
AbstractByteCollection
public AbstractByteCollection()
-
-
Methodendetails
-
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 KlasseAbstractCollection<Byte>- Gibt zurück:
- a iterator of the collection
- Siehe auch:
-
add
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
addin SchnittstelleByteCollection- Angegeben von:
addin SchnittstelleCollection<Byte>- Setzt außer Kraft:
addin KlasseAbstractCollection<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
-
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
-
contains
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
containsin SchnittstelleByteCollection- Angegeben von:
containsin SchnittstelleCollection<Byte>- Setzt außer Kraft:
containsin KlasseAbstractCollection<Byte>
-
contains
public boolean contains(byte e) A Type-Specific implementation of contains. This implementation iterates over the elements and returns true if the value match.- Angegeben von:
containsin SchnittstelleByteCollection- Parameter:
e- the element that should be searched for.- Gibt zurück:
- true if the value was found.
-
addAll
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
addAllin SchnittstelleCollection<Byte>- Setzt außer Kraft:
addAllin KlasseAbstractCollection<Byte>
-
containsAll
A 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- 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
- Löst aus:
NullPointerException- if the collection is null
-
containsAll
- Angegeben von:
containsAllin SchnittstelleCollection<Byte>- Setzt außer Kraft:
containsAllin KlasseAbstractCollection<Byte>
-
containsAny
Veraltet.This implementation iterates over the elements of the collection and checks if they are stored in this collection- Angegeben von:
containsAnyin SchnittstelleByteCollection- Parameter:
c- the elements that should be checked for- Gibt zurück:
- true if any element is in this collection
- Löst aus:
NullPointerException- if the collection is null
-
containsAny
This implementation iterates over the elements of the collection and checks if they are stored in this collection.- Angegeben von:
containsAnyin SchnittstelleByteCollection- Parameter:
c- the elements that should be checked for- Gibt zurück:
- true if any element is in this collection
- Löst aus:
NullPointerException- if the collection is null
-
remove
Veraltet.Please use the corresponding type-specific function instead.This 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 KlasseAbstractCollection<Byte>
-
remByte
public boolean remByte(byte e) A 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- Parameter:
e- the element that is searched for- Gibt zurück:
- true if the element was found and removed.
- Siehe auch:
-
removeAll
A 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- Parameter:
c- the elements that should be deleted- Gibt zurück:
- true if the collection was modified.
- Löst aus:
NullPointerException- if the collection is null- 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
A 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- Parameter:
c- the elements that should be kept- Gibt zurück:
- true if the collection was modified.
- Löst aus:
NullPointerException- if the collection is null- 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:
-
toByteArray
public byte[] toByteArray()A Type-Specific implementation of toArray that links totoByteArray(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) A Type-Specific implementation of toArray. This implementation iterates over all elements and unwraps them into primitive type.- 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:
-