public abstract class AbstractMutableLongValuesMap extends AbstractLongIterable implements MutableLongValuesMap
Constructor and Description |
---|
AbstractMutableLongValuesMap() |
Modifier and Type | Method and Description |
---|---|
boolean |
allSatisfy(LongPredicate predicate) |
boolean |
anySatisfy(LongPredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end)
Prints a string representation of this collection onto the given
Appendable . |
<V> MutableCollection<V> |
collect(LongToObjectFunction<? extends V> function) |
boolean |
contains(long value) |
boolean |
containsAll(LongIterable source) |
boolean |
containsValue(long value) |
int |
count(LongPredicate predicate) |
long |
detectIfNone(LongPredicate predicate,
long value) |
void |
each(LongProcedure procedure) |
void |
forEach(LongProcedure procedure) |
void |
forEachValue(LongProcedure procedure) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
long |
max() |
long |
min() |
boolean |
noneSatisfy(LongPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
MutableLongCollection |
reject(LongPredicate predicate) |
MutableLongCollection |
select(LongPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
long[] |
toArray() |
appendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
clear, longIterator
values
asLazy, average, containsAll, injectInto, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, makeString, makeString, makeString, toString
public boolean contains(long value)
contains
in interface LongIterable
public boolean containsAll(LongIterable source)
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
isEmpty
in class AbstractLongIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
notEmpty
in class AbstractLongIterable
public void forEach(LongProcedure procedure)
forEach
in interface LongIterable
public void each(LongProcedure procedure)
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()
toArray
in interface LongIterable
public MutableLongCollection select(LongPredicate predicate)
select
in interface LongIterable
select
in interface MutableLongValuesMap
public MutableLongCollection reject(LongPredicate predicate)
reject
in interface LongIterable
reject
in interface MutableLongValuesMap
public <V> MutableCollection<V> collect(LongToObjectFunction<? extends V> function)
collect
in interface LongIterable
collect
in interface MutableLongValuesMap
public long detectIfNone(LongPredicate predicate, long value)
detectIfNone
in interface LongIterable
public int count(LongPredicate predicate)
count
in interface LongIterable
public boolean anySatisfy(LongPredicate predicate)
anySatisfy
in interface LongIterable
public boolean allSatisfy(LongPredicate predicate)
allSatisfy
in interface LongIterable
public boolean noneSatisfy(LongPredicate predicate)
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–2016. All rights reserved.