Package com.carrotsearch.hppc
Class AbstractDoubleCollection
java.lang.Object
com.carrotsearch.hppc.AbstractDoubleCollection
- All Implemented Interfaces:
DoubleCollection,DoubleContainer,Iterable<DoubleCursor>
- Direct Known Subclasses:
ByteDoubleHashMap.ValuesContainer,CharDoubleHashMap.ValuesContainer,DoubleArrayDeque,DoubleArrayList,DoubleByteHashMap.KeysContainer,DoubleCharHashMap.KeysContainer,DoubleDoubleHashMap.KeysContainer,DoubleDoubleHashMap.ValuesContainer,DoubleFloatHashMap.KeysContainer,DoubleHashSet,DoubleIntHashMap.KeysContainer,DoubleLongHashMap.KeysContainer,DoubleObjectHashMap.KeysContainer,DoubleShortHashMap.KeysContainer,FloatDoubleHashMap.ValuesContainer,IntDoubleHashMap.ValuesContainer,LongDoubleHashMap.ValuesContainer,ObjectDoubleHashMap.ValuesContainer,ShortDoubleHashMap.ValuesContainer
@Generated(date="2024-05-16T08:18:11+0000",
value="AbstractKTypeCollection.java")
abstract class AbstractDoubleCollection
extends Object
implements DoubleCollection
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(DoublePredicate predicate) Default implementation redirects toDoubleCollection.removeAll(DoublePredicate)and negates the predicate.double[]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.DoubleCollection
clear, release, removeAll, removeAllMethods inherited from interface com.carrotsearch.hppc.DoubleContainer
contains, forEach, isEmpty, iterator, sizeMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AbstractDoubleCollection
AbstractDoubleCollection()
-
-
Method Details
-
removeAll
Default implementation uses a predicate for removal.- Specified by:
removeAllin interfaceDoubleCollection- Returns:
- Returns the number of removed elements.
-
retainAll
Default implementation uses a predicate for retaining.- Specified by:
retainAllin interfaceDoubleCollection- Returns:
- Returns the number of removed elements.
-
retainAll
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
Convert the contents of this container to a human-friendly string.
-