IntIterable
, IntValuesMap
, MutableIntValuesMap
, PrimitiveIterable
ByteIntHashMap
, CharIntHashMap
, DoubleIntHashMap
, FloatIntHashMap
, IntIntHashMap
, LongIntHashMap
, ShortIntHashMap
public 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(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.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, toString
asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, flatCollect, injectInto, maxIfEmpty, median, medianIfEmpty, minIfEmpty, reject, select, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedList
tap, values
clear, intIterator
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendString, appendString, makeString, makeString, makeString, toString
public boolean contains(int value)
IntIterable
contains
in interface IntIterable
public boolean containsAll(IntIterable source)
IntIterable
containsAll
in interface IntIterable
containsAll
in class AbstractIntIterable
public int max()
max
in interface IntIterable
public int min()
min
in interface IntIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
public void forEach(IntProcedure procedure)
IntIterable
forEach
in interface IntIterable
public void each(IntProcedure procedure)
IntIterable
each
in interface IntIterable
public void appendString(java.lang.Appendable appendable, java.lang.String start, java.lang.String separator, java.lang.String end)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString(String, String, String)
.appendString
in interface PrimitiveIterable
public int[] toArray()
IntIterable
toArray
in interface IntIterable
public MutableIntBag select(IntPredicate predicate)
IntIterable
select
in interface IntIterable
select
in interface IntValuesMap
select
in interface MutableIntValuesMap
public MutableIntBag reject(IntPredicate predicate)
IntIterable
reject
in interface IntIterable
reject
in interface IntValuesMap
reject
in interface MutableIntValuesMap
public <V> MutableBag<V> collect(IntToObjectFunction<? extends V> function)
IntIterable
collect
in interface IntIterable
collect
in interface IntValuesMap
collect
in interface MutableIntValuesMap
public int detectIfNone(IntPredicate predicate, int value)
detectIfNone
in interface IntIterable
public int count(IntPredicate predicate)
IntIterable
count
in interface IntIterable
public boolean anySatisfy(IntPredicate predicate)
IntIterable
anySatisfy
in interface IntIterable
public boolean allSatisfy(IntPredicate predicate)
IntIterable
allSatisfy
in interface IntIterable
public boolean noneSatisfy(IntPredicate predicate)
IntIterable
noneSatisfy
in interface IntIterable
public long sum()
sum
in interface IntIterable
public boolean containsValue(int value)
containsValue
in interface IntValuesMap
public void forEachValue(IntProcedure procedure)
forEachValue
in interface IntValuesMap
Copyright © 2004–2017. All rights reserved.