PrimitiveIterable
, ShortIterable
MutableShortBag
, MutableShortList
, MutableShortSet
AbstractMutableShortKeySet
, AbstractSynchronizedShortCollection
, AbstractUnmodifiableShortCollection
, ShortArrayList
, ShortHashBag
, ShortHashSet
, SynchronizedShortBag
, SynchronizedShortCollection
, SynchronizedShortList
, SynchronizedShortSet
, UnmodifiableShortBag
, UnmodifiableShortCollection
, UnmodifiableShortList
, UnmodifiableShortSet
public interface MutableShortCollection extends ShortIterable
Modifier and Type | Method | Description |
---|---|---|
boolean |
add(short element) |
|
boolean |
addAll(short... source) |
|
boolean |
addAll(ShortIterable source) |
|
MutableShortCollection |
asSynchronized() |
|
MutableShortCollection |
asUnmodifiable() |
|
void |
clear() |
|
<V> MutableCollection<V> |
collect(ShortToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
MutableShortCollection |
reject(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return false for the specified predicate.
|
boolean |
remove(short value) |
|
boolean |
removeAll(short... source) |
|
boolean |
removeAll(ShortIterable source) |
|
boolean |
retainAll(short... source) |
|
boolean |
retainAll(ShortIterable elements) |
|
MutableShortCollection |
select(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return true for the specified predicate.
|
MutableShortIterator |
shortIterator() |
Returns a primitive iterator that can be used to iterate over the ShortIterable in an
imperative style.
|
ImmutableShortCollection |
toImmutable() |
|
MutableShortCollection |
with(short element) |
|
MutableShortCollection |
withAll(ShortIterable elements) |
|
MutableShortCollection |
without(short element) |
|
MutableShortCollection |
withoutAll(ShortIterable elements) |
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
allSatisfy, anySatisfy, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
MutableShortIterator shortIterator()
ShortIterable
shortIterator
in interface ShortIterable
boolean add(short element)
boolean addAll(short... source)
boolean addAll(ShortIterable source)
boolean remove(short value)
boolean removeAll(ShortIterable source)
boolean removeAll(short... source)
boolean retainAll(ShortIterable elements)
Collection.retainAll(Collection)
boolean retainAll(short... source)
Collection.retainAll(Collection)
void clear()
MutableShortCollection select(ShortPredicate predicate)
ShortIterable
select
in interface ShortIterable
MutableShortCollection reject(ShortPredicate predicate)
ShortIterable
reject
in interface ShortIterable
<V> MutableCollection<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterable
collect
in interface ShortIterable
MutableShortCollection with(short element)
MutableShortCollection without(short element)
MutableShortCollection withAll(ShortIterable elements)
MutableShortCollection withoutAll(ShortIterable elements)
MutableShortCollection asUnmodifiable()
MutableShortCollection asSynchronized()
ImmutableShortCollection toImmutable()
Copyright © 2004–2017. All rights reserved.