HashBag, and is memory-optimized for float 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 FloatIntHashMap | |
| private static final long | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(float item)
Implements org.
|
| public boolean | addAll(float... source)
Implements org.
|
| public boolean | |
| public void | addOccurrences(float item, int occurrences)
Implements org.
|
| public boolean | allSatisfy(FloatPredicate predicate)
Implements org. Returns true if all of the elements in the FloatIterable return true for the specified predicate, otherwise returns false. |
| public boolean | anySatisfy(FloatPredicate predicate)
Implements org. Returns true if any of the elements in the FloatIterable 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 MutableFloatBag | |
| public MutableFloatBag | |
| 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(FloatToObjectFunction<? 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(float value)
Implements org. Returns true if the value is contained in the FloatIterable, and false if it is not. |
| public int | count(FloatPredicate predicate)
Implements org. Returns a count of the number of elements in the FloatIterable that return true for the specified predicate. |
| public float | detectIfNone(FloatPredicate predicate, float ifNone)
Implements org.
|
| public void | each(FloatProcedure procedure)
Implements org. A synonym for forEach. |
| public boolean | equals(Object otherBag)
Overrides java. Implements org. Follows the same general contract as |
| public MutableFloatIterator | floatIterator()
Implements org. Returns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style. |
| public void | forEachWithOccurrences(FloatIntProcedure 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, ObjectFloatToObjectFunction<? super T, ? extends T> function)
Implements org.
|
| public boolean | isEmpty()
Overrides default org. Returns true if this iterable has zero items. |
| public float | |
| public float | |
| public static FloatHashBag | |
| public static FloatHashBag | |
| public static FloatHashBag | |
| public static FloatHashBag | |
| public FloatHashBag | newEmpty()
Overrides default org. Creates a new empty FloatHashBag. |
| public boolean | noneSatisfy(FloatPredicate predicate)
Overrides default org. Returns true if none of the elements in the FloatIterable return true for the specified predicate, otherwise returns false. |
| public boolean | notEmpty()
Overrides default org. The English equivalent of !this.isEmpty() |
| public int | occurrencesOf(float item)
Implements org. The occurrences of a distinct item in the bag. |
| protected MutableList | occurrencesSortingBy(int n, IntFunction<FloatIntPair> function, MutableList<FloatIntPair> 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 FloatHashBag | reject(FloatPredicate predicate)
Implements org. Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate. |
| public boolean | remove(float item)
Implements org.
|
| public boolean | removeAll(float... source)
Implements org.
|
| public boolean | |
| public boolean | removeIf(FloatPredicate predicate)
Overrides default org.
|
| public boolean | removeOccurrences(float item, int occurrences)
Implements org.
|
| public boolean | |
| public boolean | retainAll(float... source)
Implements org.
|
| public FloatHashBag | select(FloatPredicate predicate)
Implements org. Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate. |
| public FloatHashBag | selectByOccurrences(IntPredicate predicate)
Implements org. Returns all elements of the bag that have a number of occurrences that satisfy the predicate. |
| public MutableFloatSet | 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 float[] | toArray()
Implements org. Converts the FloatIterable to a primitive float array. |
| public float[] | toArray(float[] array)
Overrides default org. Converts the FloatIterable to a primitive float array. |
| public ImmutableFloatBag | toImmutable()
Implements org. Returns an immutable copy of this bag. |
| protected MutableList | |
| public MutableList | topOccurrences(int count)
Implements org. Returns the |
| public FloatHashBag | |
| public FloatHashBag | |
| public FloatHashBag | |
| public FloatHashBag | withAll(FloatIterable iterable)
Implements org.
|
| public FloatHashBag | |
| public FloatHashBag | withoutAll(FloatIterable iterable)
Implements org.
|
| 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. |