Package com.carrotsearch.hppc
Class AbstractByteCollection
- java.lang.Object
-
- com.carrotsearch.hppc.AbstractByteCollection
-
- All Implemented Interfaces:
ByteCollection,ByteContainer,java.lang.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-16T12:00:00+0000", value="AbstractKTypeCollection.java") abstract class AbstractByteCollection extends java.lang.Object implements ByteCollectionCommon superclass for collections.
-
-
Constructor Summary
Constructors Constructor Description AbstractByteCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intremoveAll(ByteLookupContainer c)Default implementation uses a predicate for removal.intretainAll(ByteLookupContainer c)Default 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.java.lang.StringtoString()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
-
-
-
-
Method Detail
-
removeAll
public int removeAll(ByteLookupContainer c)
Default implementation uses a predicate for removal.- Specified by:
removeAllin interfaceByteCollection- Returns:
- Returns the number of removed elements.
-
retainAll
public int retainAll(ByteLookupContainer c)
Default implementation uses a predicate for retaining.- Specified by:
retainAllin interfaceByteCollection- Returns:
- Returns the number of removed elements.
-
retainAll
public int retainAll(BytePredicate predicate)
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
public java.lang.String toString()
Convert the contents of this container to a human-friendly string.- Overrides:
toStringin classjava.lang.Object
-
-