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.
|
default MutableShortCollection |
newEmpty() |
Creates a new empty mutable version of the same collection type.
|
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) |
|
default boolean |
removeIf(ShortPredicate predicate) |
|
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.
|
default MutableShortCollection |
tap(ShortProcedure procedure) |
|
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, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, 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)
default boolean removeIf(ShortPredicate predicate)
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()
default MutableShortCollection tap(ShortProcedure procedure)
tap
in interface ShortIterable
default MutableShortCollection newEmpty()
Copyright © 2004–2019. All rights reserved.