public abstract class AbstractMutableDoubleValuesMap extends AbstractDoubleIterable implements MutableDoubleValuesMap
Constructor and Description |
---|
AbstractMutableDoubleValuesMap() |
Modifier and Type | Method and Description |
---|---|
boolean |
allSatisfy(DoublePredicate predicate) |
boolean |
anySatisfy(DoublePredicate 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(DoubleToObjectFunction<? extends V> function) |
boolean |
contains(double value) |
boolean |
containsAll(DoubleIterable source) |
boolean |
containsValue(double value) |
int |
count(DoublePredicate predicate) |
double |
detectIfNone(DoublePredicate predicate,
double value) |
void |
each(DoubleProcedure procedure) |
void |
forEach(DoubleProcedure procedure) |
void |
forEachValue(DoubleProcedure procedure) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
double |
max() |
double |
min() |
boolean |
noneSatisfy(DoublePredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
MutableDoubleCollection |
reject(DoublePredicate predicate) |
MutableDoubleCollection |
select(DoublePredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
double |
sum() |
double[] |
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, doubleIterator
values
asLazy, average, containsAll, injectInto, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, makeString, makeString, makeString, toString
public boolean contains(double value)
contains
in interface DoubleIterable
public boolean containsAll(DoubleIterable source)
containsAll
in interface DoubleIterable
containsAll
in class AbstractDoubleIterable
public double max()
max
in interface DoubleIterable
public double min()
min
in interface DoubleIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
isEmpty
in class AbstractDoubleIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
notEmpty
in class AbstractDoubleIterable
public void forEach(DoubleProcedure procedure)
forEach
in interface DoubleIterable
public void each(DoubleProcedure procedure)
each
in interface DoubleIterable
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 double[] toArray()
toArray
in interface DoubleIterable
public MutableDoubleCollection select(DoublePredicate predicate)
select
in interface DoubleIterable
select
in interface MutableDoubleValuesMap
public MutableDoubleCollection reject(DoublePredicate predicate)
reject
in interface DoubleIterable
reject
in interface MutableDoubleValuesMap
public <V> MutableCollection<V> collect(DoubleToObjectFunction<? extends V> function)
collect
in interface DoubleIterable
collect
in interface MutableDoubleValuesMap
public double detectIfNone(DoublePredicate predicate, double value)
detectIfNone
in interface DoubleIterable
public int count(DoublePredicate predicate)
count
in interface DoubleIterable
public boolean anySatisfy(DoublePredicate predicate)
anySatisfy
in interface DoubleIterable
public boolean allSatisfy(DoublePredicate predicate)
allSatisfy
in interface DoubleIterable
public boolean noneSatisfy(DoublePredicate predicate)
noneSatisfy
in interface DoubleIterable
public double sum()
sum
in interface DoubleIterable
public boolean containsValue(double value)
containsValue
in interface DoubleValuesMap
public void forEachValue(DoubleProcedure procedure)
forEachValue
in interface DoubleValuesMap
Copyright © 2004–2016. All rights reserved.