Top Description Methods
org.eclipse.collections.api.bag.primitive

public Interface ImmutableDoubleBag

extends ImmutableDoubleCollection, DoubleBag
Imports
org.eclipse.collections.api.DoubleIterable, org.eclipse.collections.api.bag.ImmutableBag, org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntPredicate, .DoublePredicate, org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure, org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection, org.eclipse.collections.api.list.ImmutableList, org.eclipse.collections.api.tuple.primitive.DoubleIntPair, org.eclipse.collections.api.set.primitive.ImmutableDoubleSet

This file was automatically generated from template file immutablePrimitiveBag.stg.
Since
3.0.

Method Summary

Modifier and TypeMethod and Description
public ImmutableList<DoubleIntPair>
bottomOccurrences(int count)

Redeclares org.eclipse.collections.api.bag.primitive.DoubleBag.bottomOccurrences.

Returns the count least frequently occurring items.

public <V> ImmutableBag<V>
collect(DoubleToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.collect, org.eclipse.collections.api.bag.primitive.DoubleBag.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public ImmutableDoubleBag
public ImmutableDoubleBag
public ImmutableDoubleBag
public ImmutableDoubleBag
public ImmutableDoubleBag
reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.reject, org.eclipse.collections.api.bag.primitive.DoubleBag.reject.

Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.

public ImmutableDoubleBag
select(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.select, org.eclipse.collections.api.bag.primitive.DoubleBag.select.

Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.

public ImmutableDoubleBag
selectByOccurrences(IntPredicate predicate)

Redeclares org.eclipse.collections.api.bag.primitive.DoubleBag.selectByOccurrences.

Returns all elements of the bag that have a number of occurrences that satisfy the predicate.

public default ImmutableDoubleBag
selectDuplicates()

Overrides default org.eclipse.collections.api.bag.primitive.DoubleBag.selectDuplicates.

Returns all elements of the bag that have more than one occurrence.

public ImmutableDoubleSet
selectUnique()

Redeclares org.eclipse.collections.api.bag.primitive.DoubleBag.selectUnique.

Returns all elements of the bag that have exactly one occurrence.

public default ImmutableDoubleBag
public ImmutableList<DoubleIntPair>
topOccurrences(int count)

Redeclares org.eclipse.collections.api.bag.primitive.DoubleBag.topOccurrences.

Returns the count most frequently occurring items.

Inherited from org.eclipse.collections.api.bag.primitive.DoubleBag:
equalsforEachWithOccurrenceshashCodeoccurrencesOfsizeDistincttoImmutabletoStringOfItemToCount

Method Detail

bottomOccurrencesback to summary
public ImmutableList<DoubleIntPair> bottomOccurrences(int count)

Redeclares org.eclipse.collections.api.bag.primitive.DoubleBag.bottomOccurrences.

Returns the count least frequently occurring items. In the event of a tie, all of the items with the number of occurrences that match the occurrences of the last item will be returned.

Annotations
@Override
Since
8.0
collectback to summary
public <V> ImmutableBag<V> collect(DoubleToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.collect, org.eclipse.collections.api.bag.primitive.DoubleBag.collect.

Doc from org.eclipse.collections.api.DoubleIterable.collect.

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.

Annotations
@Override
newWithback to summary
public ImmutableDoubleBag newWith(double element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.newWith.

Annotations
@Override
newWithAllback to summary
public ImmutableDoubleBag newWithAll(DoubleIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.newWithAll.

Annotations
@Override
newWithoutback to summary
public ImmutableDoubleBag newWithout(double element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.newWithout.

Annotations
@Override
newWithoutAllback to summary
public ImmutableDoubleBag newWithoutAll(DoubleIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.newWithoutAll.

Annotations
@Override
rejectback to summary
public ImmutableDoubleBag reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.reject, org.eclipse.collections.api.bag.primitive.DoubleBag.reject.

Doc from org.eclipse.collections.api.DoubleIterable.reject.

Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.

Annotations
@Override
selectback to summary
public ImmutableDoubleBag select(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.select, org.eclipse.collections.api.bag.primitive.DoubleBag.select.

Doc from org.eclipse.collections.api.DoubleIterable.select.

Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.

Annotations
@Override
selectByOccurrencesback to summary
public ImmutableDoubleBag selectByOccurrences(IntPredicate predicate)

Redeclares org.eclipse.collections.api.bag.primitive.DoubleBag.selectByOccurrences.

Returns all elements of the bag that have a number of occurrences that satisfy the predicate.

Annotations
@Override
Since
8.0
selectDuplicatesback to summary
public default ImmutableDoubleBag selectDuplicates()

Overrides default org.eclipse.collections.api.bag.primitive.DoubleBag.selectDuplicates.

Returns all elements of the bag that have more than one occurrence.

Annotations
@Override
Since
9.2
selectUniqueback to summary
public ImmutableDoubleSet selectUnique()

Redeclares org.eclipse.collections.api.bag.primitive.DoubleBag.selectUnique.

Returns all elements of the bag that have exactly one occurrence.

Annotations
@Override
Since
9.2
tapback to summary
public default ImmutableDoubleBag tap(DoubleProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.tap, org.eclipse.collections.api.bag.primitive.DoubleBag.tap.

Annotations
@Override
Since
9.0.
topOccurrencesback to summary
public ImmutableList<DoubleIntPair> topOccurrences(int count)

Redeclares org.eclipse.collections.api.bag.primitive.DoubleBag.topOccurrences.

Returns the count most frequently occurring items. In the event of a tie, all of the items with the number of occurrences that match the occurrences of the last item will be returned.

Annotations
@Override
Since
8.0