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, shortIterator
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(short item, int occurrences)
boolean removeOccurrences(short item, int occurrences)
MutableShortBag select(ShortPredicate predicate)
select
in interface MutableShortCollection
select
in interface ShortBag
select
in interface ShortIterable
MutableShortBag reject(ShortPredicate predicate)
reject
in interface MutableShortCollection
reject
in interface ShortBag
reject
in interface ShortIterable
<V> MutableBag<V> collect(ShortToObjectFunction<? extends V> function)
collect
in interface MutableShortCollection
collect
in interface ShortBag
collect
in interface ShortIterable
MutableShortBag with(short element)
with
in interface MutableShortCollection
MutableShortBag without(short element)
without
in interface MutableShortCollection
MutableShortBag withAll(ShortIterable elements)
withAll
in interface MutableShortCollection
MutableShortBag withoutAll(ShortIterable elements)
withoutAll
in interface MutableShortCollection
MutableShortBag asUnmodifiable()
asUnmodifiable
in interface MutableShortCollection
MutableShortBag asSynchronized()
asSynchronized
in interface MutableShortCollection
ImmutableShortBag toImmutable()
toImmutable
in interface MutableShortCollection
toImmutable
in interface ShortBag
Copyright © 2004–2016. All rights reserved.