Top Description Constructors Methods
com.carrotsearch.hppc

pack-priv abstract Class AbstractDoubleCollection

extends Object
implements DoubleCollection
Class Inheritance
All Implemented Interfaces
com.carrotsearch.hppc.DoubleCollection, com.carrotsearch.hppc.DoubleContainer, java.lang.Iterable
Known Direct Subclasses
com.carrotsearch.hppc.ShortDoubleHashMap.ValuesContainer, com.carrotsearch.hppc.DoubleArrayDeque, com.carrotsearch.hppc.DoubleArrayList, com.carrotsearch.hppc.ObjectDoubleHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationLongDoubleHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationObjectDoubleHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationShortDoubleHashMap.ValuesContainer, com.carrotsearch.hppc.IntDoubleHashMap.ValuesContainer, com.carrotsearch.hppc.CharDoubleHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationCharDoubleHashMap.ValuesContainer, com.carrotsearch.hppc.SortedIterationIntDoubleHashMap.ValuesContainer, com.carrotsearch.hppc.LongDoubleHashMap.ValuesContainer
Annotations
@Generated:AbstractKTypeCollection.java
date:2024-06-04T15:20:17+0200
Imports
com.carrotsearch.hppc.cursors.DoubleCursor, com.carrotsearch.hppc.predicates.DoublePredicate, 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 DoubleLookupContainer c)

Implements com.carrotsearch.hppc.DoubleCollection.removeAll.

Default implementation uses a predicate for removal.

public int
retainAll(final DoubleLookupContainer c)

Implements com.carrotsearch.hppc.DoubleCollection.retainAll.

Default implementation uses a predicate for retaining.

public int
retainAll(final DoublePredicate predicate)

Implements com.carrotsearch.hppc.DoubleCollection.retainAll.

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

public double[]
toArray()

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

AbstractDoubleCollectionback to summary
pack-priv AbstractDoubleCollection()

Method Detail

removeAllback to summary
public int removeAll(final DoubleLookupContainer c)

Implements com.carrotsearch.hppc.DoubleCollection.removeAll.

Default implementation uses a predicate for removal.

Returns:int

Doc from com.carrotsearch.hppc.DoubleCollection.removeAll.

Returns the number of removed elements.

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

Implements com.carrotsearch.hppc.DoubleCollection.retainAll.

Default implementation uses a predicate for retaining.

Returns:int

Doc from com.carrotsearch.hppc.DoubleCollection.retainAll.

Returns the number of removed elements.

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

Implements com.carrotsearch.hppc.DoubleCollection.retainAll.

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

Returns:int

Doc from com.carrotsearch.hppc.DoubleCollection.retainAll.

Returns the number of removed elements.

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

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