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

public Interface MutableByteBag

extends MutableByteCollection, ByteBag
Imports
org.eclipse.collections.api.ByteIterable, org.eclipse.collections.api.bag.MutableBag, org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntPredicate, .BytePredicate, org.eclipse.collections.api.block.procedure.primitive.ByteProcedure, org.eclipse.collections.api.collection.primitive.MutableByteCollection, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.tuple.primitive.ByteIntPair, org.eclipse.collections.api.set.primitive.MutableByteSet

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

Method Summary

Modifier and TypeMethod and Description
public void
addOccurrences(byte item, int occurrences)

public MutableByteBag
public MutableByteBag
public MutableList<ByteIntPair>
bottomOccurrences(int count)

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

Returns the count least frequently occurring items.

public <V> MutableBag<V>
collect(ByteToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.collect, org.eclipse.collections.api.bag.primitive.ByteBag.collect.

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

public default MutableByteBag
newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableByteCollection.newEmpty.

Creates a new empty mutable version of the same Bag type.

public MutableByteBag
reject(BytePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.reject, org.eclipse.collections.api.bag.primitive.ByteBag.reject.

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

public boolean
removeOccurrences(byte item, int occurrences)

public MutableByteBag
select(BytePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.select, org.eclipse.collections.api.bag.primitive.ByteBag.select.

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

public MutableByteBag
selectByOccurrences(IntPredicate predicate)

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

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

public default MutableByteBag
selectDuplicates()

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

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

public MutableByteSet
selectUnique()

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

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

public default MutableByteBag
public ImmutableByteBag
public MutableList<ByteIntPair>
topOccurrences(int count)

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

Returns the count most frequently occurring items.

public MutableByteBag
public MutableByteBag
public MutableByteBag
public MutableByteBag
Inherited from org.eclipse.collections.api.bag.primitive.ByteBag:
equalsforEachWithOccurrenceshashCodeoccurrencesOfsizeDistincttoStringOfItemToCount
Inherited from org.eclipse.collections.api.collection.primitive.MutableByteCollection:
addaddAlladdAllbyteIteratorclearremoveremoveAllremoveAllremoveIfretainAllretainAll

Method Detail

addOccurrencesback to summary
public void addOccurrences(byte item, int occurrences)
asSynchronizedback to summary
public MutableByteBag asSynchronized()

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableByteBag asUnmodifiable()

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.asUnmodifiable.

Annotations
@Override
bottomOccurrencesback to summary
public MutableList<ByteIntPair> bottomOccurrences(int count)

Redeclares org.eclipse.collections.api.bag.primitive.ByteBag.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> MutableBag<V> collect(ByteToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.collect, org.eclipse.collections.api.bag.primitive.ByteBag.collect.

Doc from org.eclipse.collections.api.ByteIterable.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
newEmptyback to summary
public default MutableByteBag newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableByteCollection.newEmpty.

Creates a new empty mutable version of the same Bag type.

Since
9.2.
rejectback to summary
public MutableByteBag reject(BytePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.reject, org.eclipse.collections.api.bag.primitive.ByteBag.reject.

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

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

Annotations
@Override
removeOccurrencesback to summary
public boolean removeOccurrences(byte item, int occurrences)
selectback to summary
public MutableByteBag select(BytePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.select, org.eclipse.collections.api.bag.primitive.ByteBag.select.

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

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

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

Redeclares org.eclipse.collections.api.bag.primitive.ByteBag.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 MutableByteBag selectDuplicates()

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

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

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

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

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

Annotations
@Override
Since
9.2
tapback to summary
public default MutableByteBag tap(ByteProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.MutableByteCollection.tap, org.eclipse.collections.api.bag.primitive.ByteBag.tap.

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableByteBag toImmutable()

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.toImmutable, org.eclipse.collections.api.bag.primitive.ByteBag.toImmutable.

Returns an immutable copy of this bag.

Annotations
@Override
topOccurrencesback to summary
public MutableList<ByteIntPair> topOccurrences(int count)

Redeclares org.eclipse.collections.api.bag.primitive.ByteBag.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
withback to summary
public MutableByteBag with(byte element)

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.with.

Annotations
@Override
withAllback to summary
public MutableByteBag withAll(ByteIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.withAll.

Annotations
@Override
withoutback to summary
public MutableByteBag without(byte element)

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.without.

Annotations
@Override
withoutAllback to summary
public MutableByteBag withoutAll(ByteIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.MutableByteCollection.withoutAll.

Annotations
@Override