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> MutableBag<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()
|
MutableDoubleBag |
reject(DoublePredicate predicate) |
MutableDoubleBag |
select(DoublePredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
double |
sum() |
double[] |
toArray() |
asLazy, average, containsAll, 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, summaryStatistics, 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
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
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 MutableDoubleBag select(DoublePredicate predicate)
select
in interface DoubleIterable
select
in interface DoubleValuesMap
select
in interface MutableDoubleValuesMap
public MutableDoubleBag reject(DoublePredicate predicate)
reject
in interface DoubleIterable
reject
in interface DoubleValuesMap
reject
in interface MutableDoubleValuesMap
public <V> MutableBag<V> collect(DoubleToObjectFunction<? extends V> function)
collect
in interface DoubleIterable
collect
in interface DoubleValuesMap
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.