public class UnmodifiableBag<T> extends AbstractUnmodifiableMutableCollection<T> implements org.eclipse.collections.api.bag.MutableBag<T>, Serializable
MutableBag.asUnmodifiable(),
Serialized Form| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(T item,
int occurrences) |
org.eclipse.collections.api.bag.MutableBag<T> |
asSynchronized() |
org.eclipse.collections.api.bag.MutableBag<T> |
asUnmodifiable() |
org.eclipse.collections.api.list.MutableList<org.eclipse.collections.api.tuple.primitive.ObjectIntPair<T>> |
bottomOccurrences(int count) |
<V> org.eclipse.collections.api.bag.MutableBag<V> |
collect(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
org.eclipse.collections.api.bag.primitive.MutableBooleanBag |
collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction) |
org.eclipse.collections.api.bag.primitive.MutableByteBag |
collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction) |
org.eclipse.collections.api.bag.primitive.MutableCharBag |
collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction<? super T> charFunction) |
org.eclipse.collections.api.bag.primitive.MutableDoubleBag |
collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction) |
org.eclipse.collections.api.bag.primitive.MutableFloatBag |
collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction) |
<V> org.eclipse.collections.api.bag.MutableBag<V> |
collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate,
org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
org.eclipse.collections.api.bag.primitive.MutableIntBag |
collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> intFunction) |
org.eclipse.collections.api.bag.primitive.MutableLongBag |
collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> longFunction) |
org.eclipse.collections.api.bag.primitive.MutableShortBag |
collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction) |
<P,A> org.eclipse.collections.api.bag.MutableBag<A> |
collectWith(org.eclipse.collections.api.block.function.Function2<? super T,? super P,? extends A> function,
P parameter) |
boolean |
equals(Object obj) |
<V> org.eclipse.collections.api.bag.MutableBag<V> |
flatCollect(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
<V> org.eclipse.collections.api.multimap.bag.MutableBagMultimap<V,T> |
groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
<V> org.eclipse.collections.api.multimap.bag.MutableBagMultimap<V,T> |
groupByEach(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
int |
hashCode() |
org.eclipse.collections.api.bag.MutableBag<T> |
newEmpty() |
int |
occurrencesOf(Object item) |
static <E,B extends org.eclipse.collections.api.bag.MutableBag<E>> |
of(B bag)
This method will take a MutableBag and wrap it directly in a UnmodifiableBag.
|
org.eclipse.collections.api.partition.bag.PartitionMutableBag<T> |
partition(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> org.eclipse.collections.api.partition.bag.PartitionMutableBag<T> |
partitionWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
org.eclipse.collections.api.bag.MutableBag<T> |
reject(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> org.eclipse.collections.api.bag.MutableBag<T> |
rejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
removeOccurrences(Object item,
int occurrences) |
org.eclipse.collections.api.bag.MutableBag<T> |
select(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
org.eclipse.collections.api.bag.MutableBag<T> |
selectByOccurrences(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
<S> org.eclipse.collections.api.bag.MutableBag<S> |
selectInstancesOf(Class<S> clazz) |
<P> org.eclipse.collections.api.bag.MutableBag<T> |
selectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
setOccurrences(T item,
int occurrences) |
int |
sizeDistinct() |
org.eclipse.collections.api.bag.MutableBag<T> |
tap(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure) |
org.eclipse.collections.api.bag.ImmutableBag<T> |
toImmutable() |
org.eclipse.collections.api.map.MutableMap<T,Integer> |
toMapOfItemToCount() |
org.eclipse.collections.api.list.MutableList<org.eclipse.collections.api.tuple.primitive.ObjectIntPair<T>> |
topOccurrences(int count) |
String |
toStringOfItemToCount() |
org.eclipse.collections.api.bag.MutableBag<T> |
with(T element) |
org.eclipse.collections.api.bag.MutableBag<T> |
withAll(Iterable<? extends T> elements) |
org.eclipse.collections.api.bag.MutableBag<T> |
without(T element) |
org.eclipse.collections.api.bag.MutableBag<T> |
withoutAll(Iterable<? extends T> elements) |
<S> org.eclipse.collections.api.bag.MutableBag<org.eclipse.collections.api.tuple.Pair<T,S>> |
zip(Iterable<S> that)
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
org.eclipse.collections.api.set.MutableSet<org.eclipse.collections.api.tuple.Pair<T,Integer>> |
zipWithIndex()
Deprecated.
in 6.0. Use
OrderedIterable.zipWithIndex() instead. |
add, addAll, addAllIterable, aggregateBy, aggregateInPlaceBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, clear, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, each, flatCollect, forEach, forEachWith, forEachWithIndex, getFirst, getLast, groupBy, groupByEach, groupByUniqueKey, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoWith, isEmpty, iterator, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, remove, removeAll, removeAllIterable, removeIf, removeIfWith, retainAll, retainAllIterable, select, selectAndRejectWith, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexaddAllIterable, aggregateBy, aggregateInPlaceBy, groupByUniqueKey, injectIntoWith, removeAllIterable, removeIf, removeIfWith, retainAllIterable, selectAndRejectWithadd, addAll, clear, contains, containsAll, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArrayallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, each, flatCollect, getFirst, getLast, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, isEmpty, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, select, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexpublic static <E,B extends org.eclipse.collections.api.bag.MutableBag<E>> UnmodifiableBag<E> of(B bag)
public org.eclipse.collections.api.bag.MutableBag<T> asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.bag.MutableBag<T>asUnmodifiable in interface org.eclipse.collections.api.collection.MutableCollection<T>asUnmodifiable in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.MutableBag<T> asSynchronized()
asSynchronized in interface org.eclipse.collections.api.bag.MutableBag<T>asSynchronized in interface org.eclipse.collections.api.collection.MutableCollection<T>asSynchronized in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.ImmutableBag<T> toImmutable()
toImmutable in interface org.eclipse.collections.api.bag.Bag<T>toImmutable in interface org.eclipse.collections.api.bag.UnsortedBag<T>toImmutable in interface org.eclipse.collections.api.collection.MutableCollection<T>toImmutable in class AbstractUnmodifiableMutableCollection<T>public boolean equals(Object obj)
public int hashCode()
public String toStringOfItemToCount()
toStringOfItemToCount in interface org.eclipse.collections.api.bag.Bag<T>public org.eclipse.collections.api.bag.MutableBag<T> newEmpty()
newEmpty in interface org.eclipse.collections.api.bag.MutableBag<T>newEmpty in interface org.eclipse.collections.api.collection.MutableCollection<T>newEmpty in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.MutableBag<T> selectByOccurrences(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
selectByOccurrences in interface org.eclipse.collections.api.bag.Bag<T>selectByOccurrences in interface org.eclipse.collections.api.bag.MutableBag<T>selectByOccurrences in interface org.eclipse.collections.api.bag.MutableBagIterable<T>selectByOccurrences in interface org.eclipse.collections.api.bag.UnsortedBag<T>public org.eclipse.collections.api.bag.MutableBag<T> tap(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure)
tap in interface org.eclipse.collections.api.bag.Bag<T>tap in interface org.eclipse.collections.api.bag.MutableBag<T>tap in interface org.eclipse.collections.api.bag.MutableBagIterable<T>tap in interface org.eclipse.collections.api.collection.MutableCollection<T>tap in interface org.eclipse.collections.api.RichIterable<T>tap in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.MutableBag<T> select(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
select in interface org.eclipse.collections.api.bag.Bag<T>select in interface org.eclipse.collections.api.bag.MutableBag<T>select in interface org.eclipse.collections.api.bag.MutableBagIterable<T>select in interface org.eclipse.collections.api.bag.UnsortedBag<T>select in interface org.eclipse.collections.api.collection.MutableCollection<T>select in interface org.eclipse.collections.api.RichIterable<T>select in class AbstractUnmodifiableMutableCollection<T>public <P> org.eclipse.collections.api.bag.MutableBag<T> selectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
selectWith in interface org.eclipse.collections.api.bag.Bag<T>selectWith in interface org.eclipse.collections.api.bag.MutableBag<T>selectWith in interface org.eclipse.collections.api.bag.MutableBagIterable<T>selectWith in interface org.eclipse.collections.api.bag.UnsortedBag<T>selectWith in interface org.eclipse.collections.api.collection.MutableCollection<T>selectWith in interface org.eclipse.collections.api.RichIterable<T>selectWith in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.MutableBag<T> reject(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
reject in interface org.eclipse.collections.api.bag.Bag<T>reject in interface org.eclipse.collections.api.bag.MutableBag<T>reject in interface org.eclipse.collections.api.bag.MutableBagIterable<T>reject in interface org.eclipse.collections.api.bag.UnsortedBag<T>reject in interface org.eclipse.collections.api.collection.MutableCollection<T>reject in interface org.eclipse.collections.api.RichIterable<T>reject in class AbstractUnmodifiableMutableCollection<T>public <P> org.eclipse.collections.api.bag.MutableBag<T> rejectWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
rejectWith in interface org.eclipse.collections.api.bag.Bag<T>rejectWith in interface org.eclipse.collections.api.bag.MutableBag<T>rejectWith in interface org.eclipse.collections.api.bag.MutableBagIterable<T>rejectWith in interface org.eclipse.collections.api.bag.UnsortedBag<T>rejectWith in interface org.eclipse.collections.api.collection.MutableCollection<T>rejectWith in interface org.eclipse.collections.api.RichIterable<T>rejectWith in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.partition.bag.PartitionMutableBag<T> partition(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
partition in interface org.eclipse.collections.api.bag.Bag<T>partition in interface org.eclipse.collections.api.bag.MutableBag<T>partition in interface org.eclipse.collections.api.bag.MutableBagIterable<T>partition in interface org.eclipse.collections.api.bag.UnsortedBag<T>partition in interface org.eclipse.collections.api.collection.MutableCollection<T>partition in interface org.eclipse.collections.api.RichIterable<T>partition in class AbstractUnmodifiableMutableCollection<T>public <P> org.eclipse.collections.api.partition.bag.PartitionMutableBag<T> partitionWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
partitionWith in interface org.eclipse.collections.api.bag.Bag<T>partitionWith in interface org.eclipse.collections.api.bag.MutableBag<T>partitionWith in interface org.eclipse.collections.api.bag.MutableBagIterable<T>partitionWith in interface org.eclipse.collections.api.collection.MutableCollection<T>partitionWith in interface org.eclipse.collections.api.RichIterable<T>partitionWith in class AbstractUnmodifiableMutableCollection<T>public <S> org.eclipse.collections.api.bag.MutableBag<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface org.eclipse.collections.api.bag.Bag<T>selectInstancesOf in interface org.eclipse.collections.api.bag.MutableBag<T>selectInstancesOf in interface org.eclipse.collections.api.bag.MutableBagIterable<T>selectInstancesOf in interface org.eclipse.collections.api.bag.UnsortedBag<T>selectInstancesOf in interface org.eclipse.collections.api.collection.MutableCollection<T>selectInstancesOf in interface org.eclipse.collections.api.RichIterable<T>selectInstancesOf in class AbstractUnmodifiableMutableCollection<T>public <V> org.eclipse.collections.api.bag.MutableBag<V> collect(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
collect in interface org.eclipse.collections.api.bag.MutableBag<T>collect in interface org.eclipse.collections.api.bag.UnsortedBag<T>collect in interface org.eclipse.collections.api.collection.MutableCollection<T>collect in interface org.eclipse.collections.api.RichIterable<T>collect in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.primitive.MutableBooleanBag collectBoolean(org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super T> booleanFunction)
collectBoolean in interface org.eclipse.collections.api.bag.MutableBag<T>collectBoolean in interface org.eclipse.collections.api.bag.UnsortedBag<T>collectBoolean in interface org.eclipse.collections.api.collection.MutableCollection<T>collectBoolean in interface org.eclipse.collections.api.RichIterable<T>collectBoolean in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.primitive.MutableByteBag collectByte(org.eclipse.collections.api.block.function.primitive.ByteFunction<? super T> byteFunction)
collectByte in interface org.eclipse.collections.api.bag.MutableBag<T>collectByte in interface org.eclipse.collections.api.bag.UnsortedBag<T>collectByte in interface org.eclipse.collections.api.collection.MutableCollection<T>collectByte in interface org.eclipse.collections.api.RichIterable<T>collectByte in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.primitive.MutableCharBag collectChar(org.eclipse.collections.api.block.function.primitive.CharFunction<? super T> charFunction)
collectChar in interface org.eclipse.collections.api.bag.MutableBag<T>collectChar in interface org.eclipse.collections.api.bag.UnsortedBag<T>collectChar in interface org.eclipse.collections.api.collection.MutableCollection<T>collectChar in interface org.eclipse.collections.api.RichIterable<T>collectChar in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.primitive.MutableDoubleBag collectDouble(org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super T> doubleFunction)
collectDouble in interface org.eclipse.collections.api.bag.MutableBag<T>collectDouble in interface org.eclipse.collections.api.bag.UnsortedBag<T>collectDouble in interface org.eclipse.collections.api.collection.MutableCollection<T>collectDouble in interface org.eclipse.collections.api.RichIterable<T>collectDouble in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.primitive.MutableFloatBag collectFloat(org.eclipse.collections.api.block.function.primitive.FloatFunction<? super T> floatFunction)
collectFloat in interface org.eclipse.collections.api.bag.MutableBag<T>collectFloat in interface org.eclipse.collections.api.bag.UnsortedBag<T>collectFloat in interface org.eclipse.collections.api.collection.MutableCollection<T>collectFloat in interface org.eclipse.collections.api.RichIterable<T>collectFloat in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.primitive.MutableIntBag collectInt(org.eclipse.collections.api.block.function.primitive.IntFunction<? super T> intFunction)
collectInt in interface org.eclipse.collections.api.bag.MutableBag<T>collectInt in interface org.eclipse.collections.api.bag.UnsortedBag<T>collectInt in interface org.eclipse.collections.api.collection.MutableCollection<T>collectInt in interface org.eclipse.collections.api.RichIterable<T>collectInt in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.primitive.MutableLongBag collectLong(org.eclipse.collections.api.block.function.primitive.LongFunction<? super T> longFunction)
collectLong in interface org.eclipse.collections.api.bag.MutableBag<T>collectLong in interface org.eclipse.collections.api.bag.UnsortedBag<T>collectLong in interface org.eclipse.collections.api.collection.MutableCollection<T>collectLong in interface org.eclipse.collections.api.RichIterable<T>collectLong in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.primitive.MutableShortBag collectShort(org.eclipse.collections.api.block.function.primitive.ShortFunction<? super T> shortFunction)
collectShort in interface org.eclipse.collections.api.bag.MutableBag<T>collectShort in interface org.eclipse.collections.api.bag.UnsortedBag<T>collectShort in interface org.eclipse.collections.api.collection.MutableCollection<T>collectShort in interface org.eclipse.collections.api.RichIterable<T>collectShort in class AbstractUnmodifiableMutableCollection<T>public <V> org.eclipse.collections.api.bag.MutableBag<V> flatCollect(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
flatCollect in interface org.eclipse.collections.api.bag.MutableBag<T>flatCollect in interface org.eclipse.collections.api.bag.UnsortedBag<T>flatCollect in interface org.eclipse.collections.api.collection.MutableCollection<T>flatCollect in interface org.eclipse.collections.api.RichIterable<T>flatCollect in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.list.MutableList<org.eclipse.collections.api.tuple.primitive.ObjectIntPair<T>> topOccurrences(int count)
public org.eclipse.collections.api.list.MutableList<org.eclipse.collections.api.tuple.primitive.ObjectIntPair<T>> bottomOccurrences(int count)
public <P,A> org.eclipse.collections.api.bag.MutableBag<A> collectWith(org.eclipse.collections.api.block.function.Function2<? super T,? super P,? extends A> function, P parameter)
collectWith in interface org.eclipse.collections.api.bag.MutableBag<T>collectWith in interface org.eclipse.collections.api.bag.UnsortedBag<T>collectWith in interface org.eclipse.collections.api.collection.MutableCollection<T>collectWith in interface org.eclipse.collections.api.RichIterable<T>collectWith in class AbstractUnmodifiableMutableCollection<T>public <V> org.eclipse.collections.api.bag.MutableBag<V> collectIf(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate, org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
collectIf in interface org.eclipse.collections.api.bag.MutableBag<T>collectIf in interface org.eclipse.collections.api.bag.UnsortedBag<T>collectIf in interface org.eclipse.collections.api.collection.MutableCollection<T>collectIf in interface org.eclipse.collections.api.RichIterable<T>collectIf in class AbstractUnmodifiableMutableCollection<T>public <V> org.eclipse.collections.api.multimap.bag.MutableBagMultimap<V,T> groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
groupBy in interface org.eclipse.collections.api.bag.Bag<T>groupBy in interface org.eclipse.collections.api.bag.MutableBag<T>groupBy in interface org.eclipse.collections.api.bag.MutableBagIterable<T>groupBy in interface org.eclipse.collections.api.bag.UnsortedBag<T>groupBy in interface org.eclipse.collections.api.collection.MutableCollection<T>groupBy in interface org.eclipse.collections.api.RichIterable<T>groupBy in class AbstractUnmodifiableMutableCollection<T>public <V> org.eclipse.collections.api.multimap.bag.MutableBagMultimap<V,T> groupByEach(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
groupByEach in interface org.eclipse.collections.api.bag.Bag<T>groupByEach in interface org.eclipse.collections.api.bag.MutableBag<T>groupByEach in interface org.eclipse.collections.api.bag.MutableBagIterable<T>groupByEach in interface org.eclipse.collections.api.bag.UnsortedBag<T>groupByEach in interface org.eclipse.collections.api.collection.MutableCollection<T>groupByEach in interface org.eclipse.collections.api.RichIterable<T>groupByEach in class AbstractUnmodifiableMutableCollection<T>public void addOccurrences(T item, int occurrences)
addOccurrences in interface org.eclipse.collections.api.bag.MutableBagIterable<T>public boolean removeOccurrences(Object item, int occurrences)
removeOccurrences in interface org.eclipse.collections.api.bag.MutableBagIterable<T>public boolean setOccurrences(T item, int occurrences)
setOccurrences in interface org.eclipse.collections.api.bag.MutableBagIterable<T>public int sizeDistinct()
sizeDistinct in interface org.eclipse.collections.api.bag.Bag<T>public int occurrencesOf(Object item)
occurrencesOf in interface org.eclipse.collections.api.bag.Bag<T>public void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithOccurrences in interface org.eclipse.collections.api.bag.Bag<T>public org.eclipse.collections.api.map.MutableMap<T,Integer> toMapOfItemToCount()
@Deprecated public <S> org.eclipse.collections.api.bag.MutableBag<org.eclipse.collections.api.tuple.Pair<T,S>> zip(Iterable<S> that)
OrderedIterable.zip(Iterable) instead.zip in interface org.eclipse.collections.api.bag.MutableBag<T>zip in interface org.eclipse.collections.api.bag.UnsortedBag<T>zip in interface org.eclipse.collections.api.collection.MutableCollection<T>zip in interface org.eclipse.collections.api.RichIterable<T>zip in class AbstractUnmodifiableMutableCollection<T>@Deprecated public org.eclipse.collections.api.set.MutableSet<org.eclipse.collections.api.tuple.Pair<T,Integer>> zipWithIndex()
OrderedIterable.zipWithIndex() instead.zipWithIndex in interface org.eclipse.collections.api.bag.Bag<T>zipWithIndex in interface org.eclipse.collections.api.bag.MutableBag<T>zipWithIndex in interface org.eclipse.collections.api.bag.MutableBagIterable<T>zipWithIndex in interface org.eclipse.collections.api.bag.UnsortedBag<T>zipWithIndex in interface org.eclipse.collections.api.collection.MutableCollection<T>zipWithIndex in interface org.eclipse.collections.api.RichIterable<T>zipWithIndex in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.MutableBag<T> with(T element)
with in interface org.eclipse.collections.api.bag.MutableBag<T>with in interface org.eclipse.collections.api.bag.MutableBagIterable<T>with in interface org.eclipse.collections.api.collection.MutableCollection<T>with in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.MutableBag<T> without(T element)
without in interface org.eclipse.collections.api.bag.MutableBag<T>without in interface org.eclipse.collections.api.bag.MutableBagIterable<T>without in interface org.eclipse.collections.api.collection.MutableCollection<T>without in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.MutableBag<T> withAll(Iterable<? extends T> elements)
withAll in interface org.eclipse.collections.api.bag.MutableBag<T>withAll in interface org.eclipse.collections.api.bag.MutableBagIterable<T>withAll in interface org.eclipse.collections.api.collection.MutableCollection<T>withAll in class AbstractUnmodifiableMutableCollection<T>public org.eclipse.collections.api.bag.MutableBag<T> withoutAll(Iterable<? extends T> elements)
withoutAll in interface org.eclipse.collections.api.bag.MutableBag<T>withoutAll in interface org.eclipse.collections.api.bag.MutableBagIterable<T>withoutAll in interface org.eclipse.collections.api.collection.MutableCollection<T>withoutAll in class AbstractUnmodifiableMutableCollection<T>Copyright © 2004–2018. All rights reserved.