public interface MutableIntBag extends MutableIntCollection, IntBag
Modifier and Type | Method and Description |
---|---|
void |
addOccurrences(int item,
int occurrences) |
MutableIntBag |
asSynchronized() |
MutableIntBag |
asUnmodifiable() |
<V> MutableBag<V> |
collect(IntToObjectFunction<? extends V> function) |
MutableIntBag |
reject(IntPredicate predicate) |
boolean |
removeOccurrences(int item,
int occurrences) |
MutableIntBag |
select(IntPredicate predicate) |
ImmutableIntBag |
toImmutable()
Returns an immutable copy of this bag.
|
MutableIntBag |
with(int element) |
MutableIntBag |
withAll(IntIterable elements) |
MutableIntBag |
without(int element) |
MutableIntBag |
withoutAll(IntIterable elements) |
add, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, retainAll, retainAll
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
void addOccurrences(int item, int occurrences)
boolean removeOccurrences(int item, int occurrences)
MutableIntBag select(IntPredicate predicate)
select
in interface IntBag
select
in interface IntIterable
select
in interface MutableIntCollection
MutableIntBag reject(IntPredicate predicate)
reject
in interface IntBag
reject
in interface IntIterable
reject
in interface MutableIntCollection
<V> MutableBag<V> collect(IntToObjectFunction<? extends V> function)
collect
in interface IntBag
collect
in interface IntIterable
collect
in interface MutableIntCollection
MutableIntBag with(int element)
with
in interface MutableIntCollection
MutableIntBag without(int element)
without
in interface MutableIntCollection
MutableIntBag withAll(IntIterable elements)
withAll
in interface MutableIntCollection
MutableIntBag withoutAll(IntIterable elements)
withoutAll
in interface MutableIntCollection
MutableIntBag asUnmodifiable()
asUnmodifiable
in interface MutableIntCollection
MutableIntBag asSynchronized()
asSynchronized
in interface MutableIntCollection
ImmutableIntBag toImmutable()
toImmutable
in interface IntBag
toImmutable
in interface MutableIntCollection
Copyright © 2004–2016. All rights reserved.