LongIterable
, LongValuesMap
, MutableLongValuesMap
, PrimitiveIterable
ByteLongHashMap
, CharLongHashMap
, DoubleLongHashMap
, FloatLongHashMap
, IntLongHashMap
, LongLongHashMap
, ShortLongHashMap
public abstract class AbstractMutableLongValuesMap extends AbstractLongIterable implements MutableLongValuesMap
Constructor | Description |
---|---|
AbstractMutableLongValuesMap() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
allSatisfy(LongPredicate predicate) |
Returns true if all of the elements in the LongIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(LongPredicate predicate) |
Returns true if any of the elements in the LongIterable 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(LongToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
boolean |
contains(long value) |
Returns true if the value is contained in the LongIterable, and false if it is not.
|
boolean |
containsAll(LongIterable source) |
Returns true if the all of the values specified in the source LongIterable are contained
in the LongIterable, and false if they are not.
|
boolean |
containsValue(long value) |
|
int |
count(LongPredicate predicate) |
Returns a count of the number of elements in the LongIterable that return true for the
specified predicate.
|
long |
detectIfNone(LongPredicate predicate,
long value) |
|
void |
each(LongProcedure procedure) |
A synonym for forEach.
|
void |
forEach(LongProcedure procedure) |
Applies the LongProcedure to each element in the LongIterable.
|
void |
forEachValue(LongProcedure procedure) |
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
long |
max() |
|
long |
min() |
|
boolean |
noneSatisfy(LongPredicate predicate) |
Returns true if none of the elements in the LongIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
MutableLongBag |
reject(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
MutableLongBag |
select(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified predicate.
|
int |
size() |
Returns the number of items in this iterable.
|
long |
sum() |
|
long[] |
toArray() |
Converts the LongIterable to a primitive long array.
|
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, flatCollect, injectInto, maxIfEmpty, median, minIfEmpty, reject, select, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedList
values
clear, longIterator
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendString, appendString, makeString, makeString, makeString, toString
public boolean contains(long value)
LongIterable
contains
in interface LongIterable
public boolean containsAll(LongIterable source)
LongIterable
containsAll
in interface LongIterable
containsAll
in class AbstractLongIterable
public long max()
max
in interface LongIterable
public long min()
min
in interface LongIterable
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(LongProcedure procedure)
LongIterable
forEach
in interface LongIterable
public void each(LongProcedure procedure)
LongIterable
each
in interface LongIterable
public void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString(String, String, String)
.appendString
in interface PrimitiveIterable
public long[] toArray()
LongIterable
toArray
in interface LongIterable
public MutableLongBag select(LongPredicate predicate)
LongIterable
select
in interface LongIterable
select
in interface LongValuesMap
select
in interface MutableLongValuesMap
public MutableLongBag reject(LongPredicate predicate)
LongIterable
reject
in interface LongIterable
reject
in interface LongValuesMap
reject
in interface MutableLongValuesMap
public <V> MutableBag<V> collect(LongToObjectFunction<? extends V> function)
LongIterable
collect
in interface LongIterable
collect
in interface LongValuesMap
collect
in interface MutableLongValuesMap
public long detectIfNone(LongPredicate predicate, long value)
detectIfNone
in interface LongIterable
public int count(LongPredicate predicate)
LongIterable
count
in interface LongIterable
public boolean anySatisfy(LongPredicate predicate)
LongIterable
anySatisfy
in interface LongIterable
public boolean allSatisfy(LongPredicate predicate)
LongIterable
allSatisfy
in interface LongIterable
public boolean noneSatisfy(LongPredicate predicate)
LongIterable
noneSatisfy
in interface LongIterable
public long sum()
sum
in interface LongIterable
public boolean containsValue(long value)
containsValue
in interface LongValuesMap
public void forEachValue(LongProcedure procedure)
forEachValue
in interface LongValuesMap
Copyright © 2004–2017. All rights reserved.