| Modifier and Type | Method and Description |
|---|---|
| public ListIterable | |
| public <V> Bag | collect(DoubleToObjectFunction<? extends V> function)
Redeclares org. Returns a new collection with the results of applying the specified function on each element of the source collection. |
| public boolean | |
| public void | forEachWithOccurrences(DoubleIntProcedure procedure)
For each distinct item, with the number of occurrences, execute the specified procedure. |
| public int | |
| public int | |
| public DoubleBag | reject(DoublePredicate predicate)
Redeclares org. Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate. |
| public DoubleBag | select(DoublePredicate predicate)
Redeclares org. Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate. |
| public DoubleBag | selectByOccurrences(IntPredicate predicate)
Returns all elements of the bag that have a number of occurrences that satisfy the predicate. |
| public default DoubleBag | |
| public DoubleSet | |
| public int | |
| public default DoubleBag | |
| public ImmutableDoubleBag | |
| public ListIterable | |
| public default String |
| bottomOccurrences | back to summary |
|---|---|
| public ListIterable Returns the
| |
| collect | back to summary |
|---|---|
| public <V> Bag Redeclares org. Doc from org. Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Follows the same general contract as
| |
| forEachWithOccurrences | back to summary |
|---|---|
| public void forEachWithOccurrences(DoubleIntProcedure procedure) For each distinct item, with the number of occurrences, execute the specified procedure. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Follows the same general contract as
| |
| occurrencesOf | back to summary |
|---|---|
| public int occurrencesOf(double item) The occurrences of a distinct item in the bag. | |
| reject | back to summary |
|---|---|
| public DoubleBag reject(DoublePredicate predicate) Redeclares org. Doc from org. Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.
| |
| select | back to summary |
|---|---|
| public DoubleBag select(DoublePredicate predicate) Redeclares org. Doc from org. Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.
| |
| selectByOccurrences | back to summary |
|---|---|
| public DoubleBag selectByOccurrences(IntPredicate predicate) Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
| |
| selectDuplicates | back to summary |
|---|---|
| public default DoubleBag selectDuplicates() Returns all elements of the bag that have more than one occurrence.
| |
| selectUnique | back to summary |
|---|---|
| public DoubleSet selectUnique() Returns all elements of the bag that have exactly one occurrence.
| |
| sizeDistinct | back to summary |
|---|---|
| public int sizeDistinct() The size of the Bag when counting only distinct elements. | |
| tap | back to summary |
|---|---|
| public default DoubleBag tap(DoubleProcedure procedure) Overrides default org.
| |
| toImmutable | back to summary |
|---|---|
| public ImmutableDoubleBag toImmutable() Returns an immutable copy of this bag. If the bag is immutable, it returns itself. | |
| topOccurrences | back to summary |
|---|---|
| public ListIterable Returns the
| |
| toStringOfItemToCount | back to summary |
|---|---|
public default String toStringOfItemToCount()
| |