HashBag, and is memory-optimized for double primitives.
This file was automatically generated from template file primitiveHashBag.stg.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private DoubleIntHashMap | |
| private static final long | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(double item)
Implements org.
|
| public boolean | addAll(double... source)
Implements org.
|
| public boolean | |
| public void | addOccurrences(double item, int occurrences)
Implements org.
|
| public boolean | allSatisfy(DoublePredicate predicate)
Implements org. Returns true if all of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false. |
| public boolean | anySatisfy(DoublePredicate predicate)
Implements org. Returns true if any of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false. |
| public void | appendString(Appendable appendable, String start, String separator, String end)
Implements org. Prints a string representation of this collection onto the given |
| public MutableDoubleBag | |
| public MutableDoubleBag | |
| public MutableList | bottomOccurrences(int count)
Implements org. Returns the |
| public RichIterable | chunk(int size)
Overrides default org. Partitions elements in fixed size chunks. |
| public void | |
| public <V> MutableBag | collect(DoubleToObjectFunction<? extends V> function)
Implements org. Returns a new collection with the results of applying the specified function on each element of the source collection. |
| public boolean | contains(double value)
Implements org. Returns true if the value is contained in the DoubleIterable, and false if it is not. |
| public int | count(DoublePredicate predicate)
Implements org. Returns a count of the number of elements in the DoubleIterable that return true for the specified predicate. |
| public double | detectIfNone(DoublePredicate predicate, double ifNone)
Implements org.
|
| public MutableDoubleIterator | doubleIterator()
Implements org. Returns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style. |
| public void | each(DoubleProcedure procedure)
Implements org. A synonym for forEach. |
| public boolean | equals(Object otherBag)
Overrides java. Implements org. Follows the same general contract as |
| public void | forEachWithOccurrences(DoubleIntProcedure procedure)
Implements org. For each distinct item, with the number of occurrences, execute the specified procedure. |
| public int | hashCode()
Overrides java. Implements org. Follows the same general contract as |
| public <T> T | injectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T, ? extends T> function)
Implements org.
|
| public boolean | isEmpty()
Overrides default org. Returns true if this iterable has zero items. |
| public double | |
| public double | |
| public static DoubleHashBag | |
| public static DoubleHashBag | |
| public static DoubleHashBag | |
| public static DoubleHashBag | |
| public DoubleHashBag | newEmpty()
Overrides default org. Creates a new empty DoubleHashBag. |
| public boolean | noneSatisfy(DoublePredicate predicate)
Overrides default org. Returns true if none of the elements in the DoubleIterable return true for the specified predicate, otherwise returns false. |
| public boolean | notEmpty()
Overrides default org. The English equivalent of !this.isEmpty() |
| public int | occurrencesOf(double item)
Implements org. The occurrences of a distinct item in the bag. |
| protected MutableList | occurrencesSortingBy(int n, IntFunction<DoubleIntPair> function, MutableList<DoubleIntPair> returnWhenEmpty)
|
| public void | readExternal(ObjectInput in)
Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| public DoubleHashBag | reject(DoublePredicate predicate)
Implements org. Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate. |
| public boolean | remove(double item)
Implements org.
|
| public boolean | removeAll(double... source)
Implements org.
|
| public boolean | |
| public boolean | removeIf(DoublePredicate predicate)
Overrides default org.
|
| public boolean | removeOccurrences(double item, int occurrences)
Implements org.
|
| public boolean | |
| public boolean | retainAll(double... source)
Implements org.
|
| public DoubleHashBag | select(DoublePredicate predicate)
Implements org. Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate. |
| public DoubleHashBag | selectByOccurrences(IntPredicate predicate)
Implements org. Returns all elements of the bag that have a number of occurrences that satisfy the predicate. |
| public MutableDoubleSet | selectUnique()
Implements org. Returns all elements of the bag that have exactly one occurrence. |
| public int | size()
Implements org. Returns the number of items in this iterable. |
| public int | sizeDistinct()
Implements org. The size of the Bag when counting only distinct elements. |
| public double | |
| public double[] | toArray()
Implements org. Converts the DoubleIterable to a primitive double array. |
| public double[] | toArray(double[] array)
Overrides default org. Converts the DoubleIterable to a primitive double array. |
| public ImmutableDoubleBag | toImmutable()
Implements org. Returns an immutable copy of this bag. |
| protected MutableList | |
| public MutableList | topOccurrences(int count)
Implements org. Returns the |
| public DoubleHashBag | |
| public DoubleHashBag | |
| public DoubleHashBag | |
| public DoubleHashBag | withAll(DoubleIterable iterable)
Implements org.
|
| public DoubleHashBag | without(double element)
Implements org.
|
| public DoubleHashBag | |
| public void | writeExternal(ObjectOutput out)
Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |