public interface MutableShortBag extends MutableShortCollection, ShortBag
| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(short item,
int occurrences) |
MutableShortBag |
asSynchronized() |
MutableShortBag |
asUnmodifiable() |
<V> MutableBag<V> |
collect(ShortToObjectFunction<? extends V> function) |
MutableShortBag |
reject(ShortPredicate predicate) |
boolean |
removeOccurrences(short item,
int occurrences) |
MutableShortBag |
select(ShortPredicate predicate) |
ImmutableShortBag |
toImmutable()
Returns an immutable copy of this bag.
|
MutableShortBag |
with(short element) |
MutableShortBag |
withAll(ShortIterable elements) |
MutableShortBag |
without(short element) |
MutableShortBag |
withoutAll(ShortIterable elements) |
add, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAll, shortIteratorequals, 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(short item,
int occurrences)
boolean removeOccurrences(short item,
int occurrences)
MutableShortBag select(ShortPredicate predicate)
select in interface MutableShortCollectionselect in interface ShortBagselect in interface ShortIterableMutableShortBag reject(ShortPredicate predicate)
reject in interface MutableShortCollectionreject in interface ShortBagreject in interface ShortIterable<V> MutableBag<V> collect(ShortToObjectFunction<? extends V> function)
collect in interface MutableShortCollectioncollect in interface ShortBagcollect in interface ShortIterableMutableShortBag with(short element)
with in interface MutableShortCollectionMutableShortBag without(short element)
without in interface MutableShortCollectionMutableShortBag withAll(ShortIterable elements)
withAll in interface MutableShortCollectionMutableShortBag withoutAll(ShortIterable elements)
withoutAll in interface MutableShortCollectionMutableShortBag asUnmodifiable()
asUnmodifiable in interface MutableShortCollectionMutableShortBag asSynchronized()
asSynchronized in interface MutableShortCollectionImmutableShortBag toImmutable()
toImmutable in interface MutableShortCollectiontoImmutable in interface ShortBagCopyright © 2004–2017. All rights reserved.