public abstract class AbstractMutableDoubleValuesMap extends AbstractDoubleIterable implements com.gs.collections.api.map.primitive.MutableDoubleValuesMap
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractMutableDoubleValuesMap.AbstractDoubleValuesCollection |
protected static class |
AbstractMutableDoubleValuesMap.SentinelValues |
| Constructor and Description |
|---|
AbstractMutableDoubleValuesMap() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEmptyKeyValue(double value) |
protected void |
addRemovedKeyValue(double value) |
boolean |
allSatisfy(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
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> com.gs.collections.api.collection.MutableCollection<V> |
collect(com.gs.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function) |
boolean |
contains(double value) |
boolean |
containsAll(com.gs.collections.api.DoubleIterable source) |
boolean |
containsValue(double value) |
int |
count(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
double |
detectIfNone(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate,
double value) |
void |
each(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
void |
forEach(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
void |
forEachValue(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
protected abstract double |
getEmptyValue() |
protected abstract int |
getOccupiedWithData() |
protected abstract AbstractMutableDoubleValuesMap.SentinelValues |
getSentinelValues() |
protected abstract int |
getTableSize() |
protected abstract double |
getValueAtIndex(int index) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
protected abstract boolean |
isNonSentinelAtIndex(int index) |
double |
max() |
double |
min() |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
com.gs.collections.api.collection.primitive.MutableDoubleCollection |
reject(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
protected void |
removeEmptyKey() |
protected void |
removeRemovedKey() |
com.gs.collections.api.collection.primitive.MutableDoubleCollection |
select(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
protected abstract void |
setSentinelValuesNull() |
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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, doubleIteratorprotected abstract int getOccupiedWithData()
protected abstract AbstractMutableDoubleValuesMap.SentinelValues getSentinelValues()
protected abstract void setSentinelValuesNull()
protected abstract double getEmptyValue()
protected abstract double getValueAtIndex(int index)
protected abstract int getTableSize()
protected abstract boolean isNonSentinelAtIndex(int index)
protected void addEmptyKeyValue(double value)
protected void removeEmptyKey()
protected void addRemovedKeyValue(double value)
protected void removeRemovedKey()
public boolean contains(double value)
contains in interface com.gs.collections.api.DoubleIterablepublic boolean containsAll(com.gs.collections.api.DoubleIterable source)
containsAll in interface com.gs.collections.api.DoubleIterablecontainsAll in class AbstractDoubleIterablepublic double max()
max in interface com.gs.collections.api.DoubleIterablepublic double min()
min in interface com.gs.collections.api.DoubleIterablepublic int size()
com.gs.collections.api.PrimitiveIterablesize in interface com.gs.collections.api.PrimitiveIterablepublic boolean isEmpty()
com.gs.collections.api.PrimitiveIterableisEmpty in interface com.gs.collections.api.PrimitiveIterableisEmpty in class AbstractDoubleIterablepublic boolean notEmpty()
com.gs.collections.api.PrimitiveIterablenotEmpty in interface com.gs.collections.api.PrimitiveIterablenotEmpty in class AbstractDoubleIterablepublic void forEach(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEach in interface com.gs.collections.api.DoubleIterablepublic void each(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure)
each in interface com.gs.collections.api.DoubleIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
com.gs.collections.api.PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface com.gs.collections.api.PrimitiveIterablepublic double[] toArray()
toArray in interface com.gs.collections.api.DoubleIterablepublic com.gs.collections.api.collection.primitive.MutableDoubleCollection select(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
select in interface com.gs.collections.api.DoubleIterableselect in interface com.gs.collections.api.map.primitive.MutableDoubleValuesMappublic com.gs.collections.api.collection.primitive.MutableDoubleCollection reject(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
reject in interface com.gs.collections.api.DoubleIterablereject in interface com.gs.collections.api.map.primitive.MutableDoubleValuesMappublic <V> com.gs.collections.api.collection.MutableCollection<V> collect(com.gs.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.DoubleIterablecollect in interface com.gs.collections.api.map.primitive.MutableDoubleValuesMappublic double detectIfNone(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate,
double value)
detectIfNone in interface com.gs.collections.api.DoubleIterablepublic int count(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
count in interface com.gs.collections.api.DoubleIterablepublic boolean anySatisfy(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
anySatisfy in interface com.gs.collections.api.DoubleIterablepublic boolean allSatisfy(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
allSatisfy in interface com.gs.collections.api.DoubleIterablepublic boolean noneSatisfy(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
noneSatisfy in interface com.gs.collections.api.DoubleIterablepublic double sum()
sum in interface com.gs.collections.api.DoubleIterablepublic boolean containsValue(double value)
containsValue in interface com.gs.collections.api.map.primitive.DoubleValuesMappublic void forEachValue(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEachValue in interface com.gs.collections.api.map.primitive.DoubleValuesMap