Package com.carrotsearch.hppc
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="2023-10-26T04:33:10+0000",
value="AbstractKTypeCollection.java")
abstract class AbstractByteCollection
extends Object
implements ByteCollection
Common superclass for collections.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Default implementation uses a predicate for removal.int
Default implementation uses a predicate for retaining.int
retainAll
(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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.carrotsearch.hppc.ByteCollection
clear, release, removeAll, removeAll
Methods inherited from interface com.carrotsearch.hppc.ByteContainer
contains, forEach, isEmpty, iterator, size
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AbstractByteCollection
AbstractByteCollection()
-
-
Method Details
-
removeAll
Default implementation uses a predicate for removal.- Specified by:
removeAll
in interfaceByteCollection
- Returns:
- Returns the number of removed elements.
-
retainAll
Default implementation uses a predicate for retaining.- Specified by:
retainAll
in interfaceByteCollection
- Returns:
- Returns the number of removed elements.
-
retainAll
Default implementation redirects toByteCollection.removeAll(BytePredicate)
and negates the predicate.- Specified by:
retainAll
in interfaceByteCollection
- Returns:
- Returns the number of removed elements.
-
toArray
public byte[] toArray()Default implementation of copying to an array.- Specified by:
toArray
in interfaceByteContainer
-
toString
Convert the contents of this container to a human-friendly string.
-