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, retainAllequals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinctallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringvoid addOccurrences(int item,
int occurrences)
boolean removeOccurrences(int item,
int occurrences)
MutableIntBag select(IntPredicate predicate)
select in interface IntBagselect in interface IntIterableselect in interface MutableIntCollectionMutableIntBag reject(IntPredicate predicate)
reject in interface IntBagreject in interface IntIterablereject in interface MutableIntCollection<V> MutableBag<V> collect(IntToObjectFunction<? extends V> function)
collect in interface IntBagcollect in interface IntIterablecollect in interface MutableIntCollectionMutableIntBag with(int element)
with in interface MutableIntCollectionMutableIntBag without(int element)
without in interface MutableIntCollectionMutableIntBag withAll(IntIterable elements)
withAll in interface MutableIntCollectionMutableIntBag withoutAll(IntIterable elements)
withoutAll in interface MutableIntCollectionMutableIntBag asUnmodifiable()
asUnmodifiable in interface MutableIntCollectionMutableIntBag asSynchronized()
asSynchronized in interface MutableIntCollectionImmutableIntBag toImmutable()
toImmutable in interface IntBagtoImmutable in interface MutableIntCollectionCopyright © 2004–2017. All rights reserved.