Top Description Constructors Methods
com.carrotsearch.hppc

pack-priv abstract Class AbstractFloatCollection

extends Object
implements FloatCollection
Class Inheritance
All Implemented Interfaces
com.carrotsearch.hppc.FloatCollection, com.carrotsearch.hppc.FloatContainer, java.lang.Iterable
Known Direct Subclasses
com.carrotsearch.hppc.IntFloatHashMap.ValuesContainer, com.carrotsearch.hppc.ShortFloatHashMap.ValuesContainer, com.carrotsearch.hppc.FloatArrayDeque, com.carrotsearch.hppc.FloatArrayList, com.carrotsearch.hppc.ObjectFloatHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationLongFloatHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationObjectFloatHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationShortFloatHashMap.ValuesContainer, com.carrotsearch.hppc.CharFloatHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationCharFloatHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationIntFloatHashMap.ValuesContainer, com.carrotsearch.hppc.LongFloatHashMap.ValuesContainer
Annotations
@Generated:AbstractKTypeCollection.java
date:2024-06-04T15:20:17+0200
Imports
com.carrotsearch.hppc.cursors.FloatCursor, com.carrotsearch.hppc.predicates.FloatPredicate, 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 FloatLookupContainer c)

Implements com.carrotsearch.hppc.FloatCollection.removeAll.

Default implementation uses a predicate for removal.

public int
retainAll(final FloatLookupContainer c)

Implements com.carrotsearch.hppc.FloatCollection.retainAll.

Default implementation uses a predicate for retaining.

public int
retainAll(final FloatPredicate predicate)

Implements com.carrotsearch.hppc.FloatCollection.retainAll.

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

public float[]
toArray()

Implements com.carrotsearch.hppc.FloatContainer.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

AbstractFloatCollectionback to summary
pack-priv AbstractFloatCollection()

Method Detail

removeAllback to summary
public int removeAll(final FloatLookupContainer c)

Implements com.carrotsearch.hppc.FloatCollection.removeAll.

Default implementation uses a predicate for removal.

Returns:int

Doc from com.carrotsearch.hppc.FloatCollection.removeAll.

Returns the number of removed elements.

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

Implements com.carrotsearch.hppc.FloatCollection.retainAll.

Default implementation uses a predicate for retaining.

Returns:int

Doc from com.carrotsearch.hppc.FloatCollection.retainAll.

Returns the number of removed elements.

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

Implements com.carrotsearch.hppc.FloatCollection.retainAll.

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

Returns:int

Doc from com.carrotsearch.hppc.FloatCollection.retainAll.

Returns the number of removed elements.

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

Implements com.carrotsearch.hppc.FloatContainer.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