Package com.carrotsearch.hppc
Class AbstractDoubleCollection
- java.lang.Object
-
- com.carrotsearch.hppc.AbstractDoubleCollection
-
- All Implemented Interfaces:
DoubleCollection,DoubleContainer,java.lang.Iterable<DoubleCursor>
- Direct Known Subclasses:
CharDoubleHashMap.ValuesContainer,DoubleArrayDeque,DoubleArrayList,IntDoubleHashMap.ValuesContainer,LongDoubleHashMap.ValuesContainer,ObjectDoubleHashMap.ValuesContainer,ShortDoubleHashMap.ValuesContainer
@Generated(date="2026-04-06T11:37:44+0000", value="AbstractKTypeCollection.java") abstract class AbstractDoubleCollection extends java.lang.Object implements DoubleCollection
Common superclass for collections.
-
-
Constructor Summary
Constructors Constructor Description AbstractDoubleCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intremoveAll(DoubleLookupContainer c)Default implementation uses a predicate for removal.intretainAll(DoubleLookupContainer c)Default implementation uses a predicate for retaining.intretainAll(DoublePredicate predicate)Default implementation redirects toDoubleCollection.removeAll(DoublePredicate)and negates the predicate.double[]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.DoubleCollection
clear, release, removeAll, removeAll
-
-
-
-
Method Detail
-
removeAll
public int removeAll(DoubleLookupContainer c)
Default implementation uses a predicate for removal.- Specified by:
removeAllin interfaceDoubleCollection- Returns:
- Returns the number of removed elements.
-
retainAll
public int retainAll(DoubleLookupContainer c)
Default implementation uses a predicate for retaining.- Specified by:
retainAllin interfaceDoubleCollection- Returns:
- Returns the number of removed elements.
-
retainAll
public int retainAll(DoublePredicate predicate)
Default implementation redirects toDoubleCollection.removeAll(DoublePredicate)and negates the predicate.- Specified by:
retainAllin interfaceDoubleCollection- Returns:
- Returns the number of removed elements.
-
toArray
public double[] toArray()
Default implementation of copying to an array.- Specified by:
toArrayin interfaceDoubleContainer
-
toString
public java.lang.String toString()
Convert the contents of this container to a human-friendly string.- Overrides:
toStringin classjava.lang.Object
-
-