Package com.carrotsearch.hppc
Class AbstractFloatCollection
java.lang.Object
com.carrotsearch.hppc.AbstractFloatCollection
- All Implemented Interfaces:
FloatCollection,FloatContainer,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-16T08:18:11+0000",
value="AbstractKTypeCollection.java")
abstract class AbstractFloatCollection
extends Object
implements FloatCollection
Common superclass for collections.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDefault implementation uses a predicate for removal.intDefault implementation uses a predicate for retaining.intretainAll(FloatPredicate predicate) Default implementation redirects toFloatCollection.removeAll(FloatPredicate)and negates the predicate.float[]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, waitMethods inherited from interface com.carrotsearch.hppc.FloatCollection
clear, release, removeAll, removeAllMethods inherited from interface com.carrotsearch.hppc.FloatContainer
contains, forEach, isEmpty, iterator, sizeMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AbstractFloatCollection
AbstractFloatCollection()
-
-
Method Details
-
removeAll
Default implementation uses a predicate for removal.- Specified by:
removeAllin interfaceFloatCollection- Returns:
- Returns the number of removed elements.
-
retainAll
Default implementation uses a predicate for retaining.- Specified by:
retainAllin interfaceFloatCollection- Returns:
- Returns the number of removed elements.
-
retainAll
Default implementation redirects toFloatCollection.removeAll(FloatPredicate)and negates the predicate.- Specified by:
retainAllin interfaceFloatCollection- Returns:
- Returns the number of removed elements.
-
toArray
public float[] toArray()Default implementation of copying to an array.- Specified by:
toArrayin interfaceFloatContainer
-
toString
Convert the contents of this container to a human-friendly string.
-