IntIterable, PrimitiveIterableMutableIntBag, MutableIntList, MutableIntSetAbstractMutableIntKeySet, AbstractSynchronizedIntCollection, AbstractUnmodifiableIntCollection, IntArrayList, IntHashBag, IntHashSet, SynchronizedIntBag, SynchronizedIntCollection, SynchronizedIntList, SynchronizedIntSet, UnmodifiableIntBag, UnmodifiableIntCollection, UnmodifiableIntList, UnmodifiableIntSetpublic interface MutableIntCollection extends IntIterable
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
add(int element) |
|
boolean |
addAll(int... source) |
|
boolean |
addAll(IntIterable source) |
|
MutableIntCollection |
asSynchronized() |
|
MutableIntCollection |
asUnmodifiable() |
|
void |
clear() |
|
<V> MutableCollection<V> |
collect(IntToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
MutableIntIterator |
intIterator() |
Returns a primitive iterator that can be used to iterate over the IntIterable in an
imperative style.
|
default MutableIntCollection |
newEmpty() |
Creates a new empty mutable version of the same collection type.
|
MutableIntCollection |
reject(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
boolean |
remove(int value) |
|
boolean |
removeAll(int... source) |
|
boolean |
removeAll(IntIterable source) |
|
default boolean |
removeIf(IntPredicate predicate) |
|
boolean |
retainAll(int... source) |
|
boolean |
retainAll(IntIterable elements) |
|
MutableIntCollection |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
default MutableIntCollection |
tap(IntProcedure procedure) |
|
ImmutableIntCollection |
toImmutable() |
|
MutableIntCollection |
with(int element) |
|
MutableIntCollection |
withAll(IntIterable elements) |
|
MutableIntCollection |
without(int element) |
|
MutableIntCollection |
withoutAll(IntIterable elements) |
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, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringMutableIntIterator intIterator()
IntIterableintIterator in interface IntIterableboolean add(int element)
boolean addAll(int... source)
boolean addAll(IntIterable source)
boolean remove(int value)
boolean removeAll(IntIterable source)
boolean removeAll(int... source)
default boolean removeIf(IntPredicate predicate)
boolean retainAll(IntIterable elements)
Collection.retainAll(Collection)boolean retainAll(int... source)
Collection.retainAll(Collection)void clear()
MutableIntCollection select(IntPredicate predicate)
IntIterableselect in interface IntIterableMutableIntCollection reject(IntPredicate predicate)
IntIterablereject in interface IntIterable<V> MutableCollection<V> collect(IntToObjectFunction<? extends V> function)
IntIterablecollect in interface IntIterableMutableIntCollection with(int element)
MutableIntCollection without(int element)
MutableIntCollection withAll(IntIterable elements)
MutableIntCollection withoutAll(IntIterable elements)
MutableIntCollection asUnmodifiable()
MutableIntCollection asSynchronized()
ImmutableIntCollection toImmutable()
default MutableIntCollection tap(IntProcedure procedure)
tap in interface IntIterabledefault MutableIntCollection newEmpty()
Copyright © 2004–2019. All rights reserved.