Class AbstractByteCollection
java.lang.Object
com.carrotsearch.hppc.AbstractByteCollection
- All Implemented Interfaces:
ByteCollection, ByteContainer, Iterable<ByteCursor>
- Direct Known Subclasses:
ByteArrayDeque, ByteArrayList, ByteByteHashMap.KeysContainer, ByteByteHashMap.ValuesContainer, ByteCharHashMap.KeysContainer, ByteDoubleHashMap.KeysContainer, ByteFloatHashMap.KeysContainer, ByteHashSet, ByteIntHashMap.KeysContainer, ByteLongHashMap.KeysContainer, ByteObjectHashMap.KeysContainer, ByteShortHashMap.KeysContainer, CharByteHashMap.ValuesContainer, DoubleByteHashMap.ValuesContainer, FloatByteHashMap.ValuesContainer, IntByteHashMap.ValuesContainer, LongByteHashMap.ValuesContainer, ObjectByteHashMap.ValuesContainer, ShortByteHashMap.ValuesContainer
@Generated(date="2024-05-16T08:18:11+0000",
value="AbstractKTypeCollection.java")
abstract class AbstractByteCollection
extends Object
implements ByteCollection
Common superclass for collections.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDefault implementation uses a predicate for removal.intDefault implementation uses a predicate for retaining.intretainAll(BytePredicate predicate) Default implementation redirects toByteCollection.removeAll(BytePredicate)and negates the predicate.byte[]toArray()Default implementation of copying to an array.toString()Convert the contents of this container to a human-friendly string.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ByteCollection
clear, release, removeAll, removeAllMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
AbstractByteCollection
AbstractByteCollection()
-
-
Method Details
-
removeAll
Default implementation uses a predicate for removal.- Specified by:
removeAllin interfaceByteCollection- Returns:
- Returns the number of removed elements.
-
retainAll
Default implementation uses a predicate for retaining.- Specified by:
retainAllin interfaceByteCollection- Returns:
- Returns the number of removed elements.
-
retainAll
Default implementation redirects toByteCollection.removeAll(BytePredicate)and negates the predicate.- Specified by:
retainAllin interfaceByteCollection- Returns:
- Returns the number of removed elements.
-
toArray
public byte[] toArray()Default implementation of copying to an array.- Specified by:
toArrayin interfaceByteContainer
-
toString
-