Package com.carrotsearch.hppc
Class AbstractFloatCollection
- java.lang.Object
-
- com.carrotsearch.hppc.AbstractFloatCollection
-
- All Implemented Interfaces:
FloatCollection
,FloatContainer
,java.lang.Iterable<FloatCursor>
- Direct Known Subclasses:
ByteFloatHashMap.ValuesContainer
,CharFloatHashMap.ValuesContainer
,DoubleFloatHashMap.ValuesContainer
,FloatArrayDeque
,FloatArrayList
,FloatByteHashMap.KeysContainer
,FloatCharHashMap.KeysContainer
,FloatDoubleHashMap.KeysContainer
,FloatFloatHashMap.KeysContainer
,FloatFloatHashMap.ValuesContainer
,FloatHashSet
,FloatIntHashMap.KeysContainer
,FloatLongHashMap.KeysContainer
,FloatObjectHashMap.KeysContainer
,FloatShortHashMap.KeysContainer
,IntFloatHashMap.ValuesContainer
,LongFloatHashMap.ValuesContainer
,ObjectFloatHashMap.ValuesContainer
,ShortFloatHashMap.ValuesContainer
@Generated(date="2024-05-16T12:00:00+0000", value="AbstractKTypeCollection.java") abstract class AbstractFloatCollection extends java.lang.Object implements FloatCollection
Common superclass for collections.
-
-
Constructor Summary
Constructors Constructor Description AbstractFloatCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
removeAll(FloatLookupContainer c)
Default implementation uses a predicate for removal.int
retainAll(FloatLookupContainer c)
Default implementation uses a predicate for retaining.int
retainAll(FloatPredicate predicate)
Default implementation redirects toFloatCollection.removeAll(FloatPredicate)
and negates the predicate.float[]
toArray()
Default implementation of copying to an array.java.lang.String
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.FloatCollection
clear, release, removeAll, removeAll
-
-
-
-
Method Detail
-
removeAll
public int removeAll(FloatLookupContainer c)
Default implementation uses a predicate for removal.- Specified by:
removeAll
in interfaceFloatCollection
- Returns:
- Returns the number of removed elements.
-
retainAll
public int retainAll(FloatLookupContainer c)
Default implementation uses a predicate for retaining.- Specified by:
retainAll
in interfaceFloatCollection
- Returns:
- Returns the number of removed elements.
-
retainAll
public int retainAll(FloatPredicate predicate)
Default implementation redirects toFloatCollection.removeAll(FloatPredicate)
and negates the predicate.- Specified by:
retainAll
in interfaceFloatCollection
- Returns:
- Returns the number of removed elements.
-
toArray
public float[] toArray()
Default implementation of copying to an array.- Specified by:
toArray
in interfaceFloatContainer
-
toString
public java.lang.String toString()
Convert the contents of this container to a human-friendly string.- Overrides:
toString
in classjava.lang.Object
-
-