IntIterable
, PrimitiveIterable
MutableIntBag
, MutableIntList
, MutableIntSet
AbstractMutableIntKeySet
, AbstractSynchronizedIntCollection
, AbstractUnmodifiableIntCollection
, IntArrayList
, IntHashBag
, IntHashSet
, SynchronizedIntBag
, SynchronizedIntCollection
, SynchronizedIntList
, SynchronizedIntSet
, UnmodifiableIntBag
, UnmodifiableIntCollection
, UnmodifiableIntList
, UnmodifiableIntSet
public 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.
|
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, 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
MutableIntIterator intIterator()
IntIterable
intIterator
in interface IntIterable
boolean 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)
IntIterable
select
in interface IntIterable
MutableIntCollection reject(IntPredicate predicate)
IntIterable
reject
in interface IntIterable
<V> MutableCollection<V> collect(IntToObjectFunction<? extends V> function)
IntIterable
collect
in interface IntIterable
MutableIntCollection 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 IntIterable
Copyright © 2004–2018. All rights reserved.