Top Description Constructors Methods
com.carrotsearch.hppc

pack-priv abstract Class AbstractByteCollection

extends Object
implements ByteCollection
Class Inheritance
All Implemented Interfaces
com.carrotsearch.hppc.ByteCollection, com.carrotsearch.hppc.ByteContainer, java.lang.Iterable
Known Direct Subclasses
com.carrotsearch.hppc.ByteArrayDeque, com.carrotsearch.hppc.SortedIterationLongByteHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationObjectByteHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationShortByteHashMap.ValuesContainer, com.carrotsearch.hppc.ObjectByteHashMap.ValuesContainer, com.carrotsearch.hppc.IntByteHashMap.ValuesContainer, com.carrotsearch.hppc.ByteArrayList, com.carrotsearch.hppc.CharByteHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationCharByteHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationIntByteHashMap.ValuesContainer, com.carrotsearch.hppc.LongByteHashMap.ValuesContainer, com.carrotsearch.hppc.ShortByteHashMap.ValuesContainer
Annotations
@Generated:AbstractKTypeCollection.java
date:2024-06-04T15:20:17+0200
Imports
com.carrotsearch.hppc.cursors.ByteCursor, com.carrotsearch.hppc.predicates.BytePredicate, java.util.Arrays

Common superclass for collections.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
removeAll(final ByteLookupContainer c)

Implements com.carrotsearch.hppc.ByteCollection.removeAll.

Default implementation uses a predicate for removal.

public int
retainAll(final ByteLookupContainer c)

Implements com.carrotsearch.hppc.ByteCollection.retainAll.

Default implementation uses a predicate for retaining.

public int
retainAll(final BytePredicate predicate)

Implements com.carrotsearch.hppc.ByteCollection.retainAll.

Default implementation redirects to removeAll(BytePredicate) and negates the predicate.

public byte[]
toArray()

Implements com.carrotsearch.hppc.ByteContainer.toArray.

Default implementation of copying to an array.

public String
toString()

Overrides java.lang.Object.toString.

Convert the contents of this container to a human-friendly string.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Constructor Detail

AbstractByteCollectionback to summary
pack-priv AbstractByteCollection()

Method Detail

removeAllback to summary
public int removeAll(final ByteLookupContainer c)

Implements com.carrotsearch.hppc.ByteCollection.removeAll.

Default implementation uses a predicate for removal.

Returns:int

Doc from com.carrotsearch.hppc.ByteCollection.removeAll.

Returns the number of removed elements.

Annotations
@Override
retainAllback to summary
public int retainAll(final ByteLookupContainer c)

Implements com.carrotsearch.hppc.ByteCollection.retainAll.

Default implementation uses a predicate for retaining.

Returns:int

Doc from com.carrotsearch.hppc.ByteCollection.retainAll.

Returns the number of removed elements.

Annotations
@Override
retainAllback to summary
public int retainAll(final BytePredicate predicate)

Implements com.carrotsearch.hppc.ByteCollection.retainAll.

Default implementation redirects to removeAll(BytePredicate) and negates the predicate.

Returns:int

Doc from com.carrotsearch.hppc.ByteCollection.retainAll.

Returns the number of removed elements.

Annotations
@Override
toArrayback to summary
public byte[] toArray()

Implements com.carrotsearch.hppc.ByteContainer.toArray.

Default implementation of copying to an array.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Convert the contents of this container to a human-friendly string.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object

Annotations
@Override