IntIterable, IntValuesMap, MutableIntValuesMap, PrimitiveIterableByteIntHashMap, CharIntHashMap, DoubleIntHashMap, FloatIntHashMap, IntIntHashMap, LongIntHashMap, ShortIntHashMappublic abstract class AbstractMutableIntValuesMap extends AbstractIntIterable implements MutableIntValuesMap
| Constructor | Description |
|---|---|
AbstractMutableIntValuesMap() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
allSatisfy(IntPredicate predicate) |
Returns true if all of the elements in the IntIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(IntPredicate predicate) |
Returns true if any of the elements in the IntIterable return true for the
specified predicate, otherwise returns false.
|
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
Prints a string representation of this collection onto the given
Appendable. |
<V> MutableBag<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.
|
boolean |
contains(int value) |
Returns true if the value is contained in the IntIterable, and false if it is not.
|
boolean |
containsAll(IntIterable source) |
Returns true if the all of the values specified in the source IntIterable are contained
in the IntIterable, and false if they are not.
|
boolean |
containsValue(int value) |
|
int |
count(IntPredicate predicate) |
Returns a count of the number of elements in the IntIterable that return true for the
specified predicate.
|
int |
detectIfNone(IntPredicate predicate,
int value) |
|
void |
each(IntProcedure procedure) |
A synonym for forEach.
|
void |
forEach(IntProcedure procedure) |
Applies the IntProcedure to each element in the IntIterable.
|
void |
forEachValue(IntProcedure procedure) |
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
int |
max() |
|
int |
min() |
|
boolean |
noneSatisfy(IntPredicate predicate) |
Returns true if none of the elements in the IntIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
MutableIntBag |
reject(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
MutableIntBag |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
int |
size() |
Returns the number of items in this iterable.
|
long |
sum() |
|
int[] |
toArray() |
Converts the IntIterable to a primitive int array.
|
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringasLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, flatCollect, injectInto, maxIfEmpty, median, minIfEmpty, reject, select, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedListvaluesclear, intIteratorequals, getClass, hashCode, notify, notifyAll, wait, wait, waitappendString, appendString, makeString, makeString, makeString, toStringpublic boolean contains(int value)
IntIterablecontains in interface IntIterablepublic boolean containsAll(IntIterable source)
IntIterablecontainsAll in interface IntIterablecontainsAll in class AbstractIntIterablepublic int max()
max in interface IntIterablepublic int min()
min in interface IntIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic void forEach(IntProcedure procedure)
IntIterableforEach in interface IntIterablepublic void each(IntProcedure procedure)
IntIterableeach in interface IntIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic int[] toArray()
IntIterabletoArray in interface IntIterablepublic MutableIntBag select(IntPredicate predicate)
IntIterableselect in interface IntIterableselect in interface IntValuesMapselect in interface MutableIntValuesMappublic MutableIntBag reject(IntPredicate predicate)
IntIterablereject in interface IntIterablereject in interface IntValuesMapreject in interface MutableIntValuesMappublic <V> MutableBag<V> collect(IntToObjectFunction<? extends V> function)
IntIterablecollect in interface IntIterablecollect in interface IntValuesMapcollect in interface MutableIntValuesMappublic int detectIfNone(IntPredicate predicate, int value)
detectIfNone in interface IntIterablepublic int count(IntPredicate predicate)
IntIterablecount in interface IntIterablepublic boolean anySatisfy(IntPredicate predicate)
IntIterableanySatisfy in interface IntIterablepublic boolean allSatisfy(IntPredicate predicate)
IntIterableallSatisfy in interface IntIterablepublic boolean noneSatisfy(IntPredicate predicate)
IntIterablenoneSatisfy in interface IntIterablepublic long sum()
sum in interface IntIterablepublic boolean containsValue(int value)
containsValue in interface IntValuesMappublic void forEachValue(IntProcedure procedure)
forEachValue in interface IntValuesMapCopyright © 2004–2017. All rights reserved.