public final class UnmodifiableDoubleLongMap extends Object implements MutableDoubleLongMap, Serializable
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(double key,
long toBeAdded) |
boolean |
allSatisfy(LongPredicate predicate) |
boolean |
anySatisfy(LongPredicate predicate) |
void |
appendString(Appendable appendable)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String separator)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String start,
String separator,
String end)
Prints a string representation of this collection onto the given
Appendable. |
LazyLongIterable |
asLazy() |
MutableDoubleLongMap |
asSynchronized() |
MutableDoubleLongMap |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V> MutableCollection<V> |
collect(LongToObjectFunction<? extends V> function) |
boolean |
contains(long value) |
boolean |
containsAll(long... source) |
boolean |
containsAll(LongIterable source) |
boolean |
containsKey(double key) |
boolean |
containsValue(long value) |
int |
count(LongPredicate predicate) |
long |
detectIfNone(LongPredicate predicate,
long ifNone) |
boolean |
equals(Object otherMap)
Follows the same general contract as
Map.equals(Object). |
void |
forEach(LongProcedure procedure) |
void |
forEachKey(DoubleProcedure procedure) |
void |
forEachKeyValue(DoubleLongProcedure procedure) |
void |
forEachValue(LongProcedure procedure) |
long |
get(double key) |
long |
getIfAbsent(double key,
long ifAbsent) |
long |
getIfAbsentPut(double key,
long value) |
long |
getIfAbsentPut(double key,
LongFunction0 function) |
<P> long |
getIfAbsentPutWith(double key,
LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(double key,
DoubleToLongFunction function) |
long |
getOrThrow(double key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<T> T |
injectInto(T injectedValue,
ObjectLongToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
MutableDoubleSet |
keySet() |
LazyDoubleIterable |
keysView() |
RichIterable<DoubleLongPair> |
keyValuesView() |
LongIterator |
longIterator() |
String |
makeString()
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space). |
String |
makeString(String separator)
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String). |
String |
makeString(String start,
String separator,
String end)
Returns a string representation of this collection.
|
long |
max() |
long |
maxIfEmpty(long defaultValue) |
double |
median() |
long |
min() |
long |
minIfEmpty(long defaultValue) |
boolean |
noneSatisfy(LongPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
void |
put(double key,
long value) |
void |
putAll(DoubleLongMap map) |
MutableDoubleLongMap |
reject(DoubleLongPredicate predicate) |
MutableLongCollection |
reject(LongPredicate predicate) |
void |
remove(double key) |
void |
removeKey(double key) |
long |
removeKeyIfAbsent(double key,
long value) |
MutableDoubleLongMap |
select(DoubleLongPredicate predicate) |
MutableLongCollection |
select(LongPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
long[] |
toArray() |
MutableLongBag |
toBag() |
ImmutableDoubleLongMap |
toImmutable() |
MutableLongList |
toList() |
MutableLongSet |
toSet() |
long[] |
toSortedArray() |
MutableLongList |
toSortedList() |
String |
toString()
Returns a string representation of this DoubleLongMap.
|
long |
updateValue(double key,
long initialValueIfAbsent,
LongToLongFunction function) |
MutableLongCollection |
values() |
MutableDoubleLongMap |
withKeyValue(double key,
long value) |
MutableDoubleLongMap |
withoutAllKeys(DoubleIterable keys) |
MutableDoubleLongMap |
withoutKey(double key) |
public void clear()
clear in interface MutableDoubleLongMappublic void put(double key,
long value)
put in interface MutableDoubleLongMappublic void putAll(DoubleLongMap map)
putAll in interface MutableDoubleLongMappublic void removeKey(double key)
removeKey in interface MutableDoubleLongMappublic void remove(double key)
remove in interface MutableDoubleLongMappublic long removeKeyIfAbsent(double key,
long value)
removeKeyIfAbsent in interface MutableDoubleLongMappublic long getIfAbsentPut(double key,
long value)
getIfAbsentPut in interface MutableDoubleLongMappublic long getIfAbsentPut(double key,
LongFunction0 function)
getIfAbsentPut in interface MutableDoubleLongMappublic long getIfAbsentPutWithKey(double key,
DoubleToLongFunction function)
getIfAbsentPutWithKey in interface MutableDoubleLongMappublic <P> long getIfAbsentPutWith(double key,
LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableDoubleLongMappublic long updateValue(double key,
long initialValueIfAbsent,
LongToLongFunction function)
updateValue in interface MutableDoubleLongMappublic long get(double key)
get in interface DoubleLongMappublic long getIfAbsent(double key,
long ifAbsent)
getIfAbsent in interface DoubleLongMappublic long getOrThrow(double key)
getOrThrow in interface DoubleLongMappublic boolean containsKey(double key)
containsKey in interface DoubleLongMappublic boolean containsValue(long value)
containsValue in interface DoubleLongMappublic void forEachValue(LongProcedure procedure)
forEachValue in interface DoubleLongMappublic void forEachKey(DoubleProcedure procedure)
forEachKey in interface DoubleLongMappublic void forEachKeyValue(DoubleLongProcedure procedure)
forEachKeyValue in interface DoubleLongMappublic LazyDoubleIterable keysView()
keysView in interface DoubleLongMappublic RichIterable<DoubleLongPair> keyValuesView()
keyValuesView in interface DoubleLongMappublic MutableDoubleLongMap select(DoubleLongPredicate predicate)
select in interface DoubleLongMapselect in interface MutableDoubleLongMappublic MutableDoubleLongMap reject(DoubleLongPredicate predicate)
reject in interface DoubleLongMapreject in interface MutableDoubleLongMappublic LongIterator longIterator()
longIterator in interface LongIterablepublic void forEach(LongProcedure procedure)
forEach in interface LongIterablepublic int count(LongPredicate predicate)
count in interface LongIterablepublic boolean anySatisfy(LongPredicate predicate)
anySatisfy in interface LongIterablepublic boolean allSatisfy(LongPredicate predicate)
allSatisfy in interface LongIterablepublic boolean noneSatisfy(LongPredicate predicate)
noneSatisfy in interface LongIterablepublic MutableLongCollection select(LongPredicate predicate)
select in interface LongIterableselect in interface MutableDoubleLongMappublic MutableLongCollection reject(LongPredicate predicate)
reject in interface LongIterablereject in interface MutableDoubleLongMappublic long detectIfNone(LongPredicate predicate, long ifNone)
detectIfNone in interface LongIterablepublic <V> MutableCollection<V> collect(LongToObjectFunction<? extends V> function)
collect in interface LongIterablecollect in interface MutableDoubleLongMappublic long sum()
sum in interface LongIterablepublic long max()
max in interface LongIterablepublic long maxIfEmpty(long defaultValue)
maxIfEmpty in interface LongIterablepublic long min()
min in interface LongIterablepublic long minIfEmpty(long defaultValue)
minIfEmpty in interface LongIterablepublic double average()
average in interface LongIterablepublic double median()
median in interface LongIterablepublic long addToValue(double key,
long toBeAdded)
addToValue in interface MutableDoubleLongMappublic long[] toSortedArray()
toSortedArray in interface LongIterablepublic MutableLongList toSortedList()
toSortedList in interface LongIterablepublic long[] toArray()
toArray in interface LongIterablepublic boolean contains(long value)
contains in interface LongIterablepublic boolean containsAll(long... source)
containsAll in interface LongIterablepublic boolean containsAll(LongIterable source)
containsAll in interface LongIterablepublic MutableLongList toList()
toList in interface LongIterablepublic MutableLongSet toSet()
toSet in interface LongIterablepublic MutableLongBag toBag()
toBag in interface LongIterablepublic LazyLongIterable asLazy()
asLazy in interface LongIterablepublic MutableDoubleLongMap withKeyValue(double key, long value)
withKeyValue in interface MutableDoubleLongMappublic MutableDoubleLongMap withoutKey(double key)
withoutKey in interface MutableDoubleLongMappublic MutableDoubleLongMap withoutAllKeys(DoubleIterable keys)
withoutAllKeys in interface MutableDoubleLongMappublic MutableDoubleLongMap asUnmodifiable()
asUnmodifiable in interface MutableDoubleLongMappublic MutableDoubleLongMap asSynchronized()
asSynchronized in interface MutableDoubleLongMappublic ImmutableDoubleLongMap toImmutable()
toImmutable in interface DoubleLongMappublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic MutableDoubleSet keySet()
keySet in interface DoubleLongMappublic MutableLongCollection values()
values in interface DoubleLongMappublic boolean equals(Object otherMap)
DoubleLongMapMap.equals(Object).equals in interface DoubleLongMapequals in class Objectpublic int hashCode()
DoubleLongMapMap.hashCode().hashCode in interface DoubleLongMaphashCode in class Objectpublic String toString()
DoubleLongMaptoString in interface DoubleLongMaptoString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablepublic String makeString(String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
PrimitiveIterablemakeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic <T> T injectInto(T injectedValue,
ObjectLongToObjectFunction<? super T,? extends T> function)
injectInto in interface LongIterableCopyright © 2004–2017. All rights reserved.