public class LongFloatHashMap extends Object implements MutableLongFloatMap, Externalizable
| Constructor and Description |
|---|
LongFloatHashMap() |
LongFloatHashMap(int initialCapacity) |
LongFloatHashMap(LongFloatMap map) |
| Modifier and Type | Method and Description |
|---|---|
float |
addToValue(long key,
float toBeAdded) |
boolean |
allSatisfy(FloatPredicate predicate) |
boolean |
anySatisfy(FloatPredicate 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. |
LazyFloatIterable |
asLazy() |
MutableLongFloatMap |
asSynchronized() |
MutableLongFloatMap |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V> MutableCollection<V> |
collect(FloatToObjectFunction<? extends V> function) |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
contains(float value) |
boolean |
containsAll(float... source) |
boolean |
containsAll(FloatIterable source) |
boolean |
containsKey(long key) |
boolean |
containsValue(float value) |
int |
count(FloatPredicate predicate) |
float |
detectIfNone(FloatPredicate predicate,
float value) |
boolean |
equals(Object obj)
Follows the same general contract as
Map.equals(Object). |
FloatIterator |
floatIterator() |
void |
forEach(FloatProcedure procedure) |
void |
forEachKey(LongProcedure procedure) |
void |
forEachKeyValue(LongFloatProcedure procedure) |
void |
forEachValue(FloatProcedure procedure) |
float |
get(long key) |
float |
getIfAbsent(long key,
float ifAbsent) |
float |
getIfAbsentPut(long key,
float value) |
float |
getIfAbsentPut(long key,
FloatFunction0 function) |
<P> float |
getIfAbsentPutWith(long key,
FloatFunction<? super P> function,
P parameter) |
float |
getIfAbsentPutWithKey(long key,
LongToFloatFunction function) |
float |
getOrThrow(long key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
ObjectFloatToObjectFunction<? super V,? extends V> function) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
MutableLongSet |
keySet() |
LazyLongIterable |
keysView() |
RichIterable<LongFloatPair> |
keyValuesView() |
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.
|
float |
max() |
float |
maxIfEmpty(float defaultValue) |
double |
median() |
float |
min() |
float |
minIfEmpty(float defaultValue) |
static LongFloatHashMap |
newWithKeysValues(long key1,
float value1) |
static LongFloatHashMap |
newWithKeysValues(long key1,
float value1,
long key2,
float value2) |
static LongFloatHashMap |
newWithKeysValues(long key1,
float value1,
long key2,
float value2,
long key3,
float value3) |
static LongFloatHashMap |
newWithKeysValues(long key1,
float value1,
long key2,
float value2,
long key3,
float value3,
long key4,
float value4) |
boolean |
noneSatisfy(FloatPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
void |
put(long key,
float value) |
void |
putAll(LongFloatMap map) |
void |
readExternal(ObjectInput in) |
MutableFloatCollection |
reject(FloatPredicate predicate) |
LongFloatHashMap |
reject(LongFloatPredicate predicate) |
void |
remove(long key) |
void |
removeKey(long key) |
float |
removeKeyIfAbsent(long key,
float value) |
MutableFloatCollection |
select(FloatPredicate predicate) |
LongFloatHashMap |
select(LongFloatPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
double |
sum() |
float[] |
toArray() |
MutableFloatBag |
toBag() |
ImmutableLongFloatMap |
toImmutable() |
MutableFloatList |
toList() |
MutableFloatSet |
toSet() |
float[] |
toSortedArray() |
MutableFloatList |
toSortedList() |
String |
toString()
Returns a string representation of this LongFloatMap.
|
float |
updateValue(long key,
float initialValueIfAbsent,
FloatToFloatFunction function) |
MutableFloatCollection |
values() |
LongFloatHashMap |
withKeysValues(long key1,
float value1,
long key2,
float value2) |
LongFloatHashMap |
withKeysValues(long key1,
float value1,
long key2,
float value2,
long key3,
float value3) |
LongFloatHashMap |
withKeysValues(long key1,
float value1,
long key2,
float value2,
long key3,
float value3,
long key4,
float value4) |
LongFloatHashMap |
withKeyValue(long key1,
float value1) |
LongFloatHashMap |
withoutAllKeys(LongIterable keys) |
LongFloatHashMap |
withoutKey(long key) |
void |
writeExternal(ObjectOutput out) |
public LongFloatHashMap()
public LongFloatHashMap(int initialCapacity)
public LongFloatHashMap(LongFloatMap map)
public static LongFloatHashMap newWithKeysValues(long key1, float value1)
public static LongFloatHashMap newWithKeysValues(long key1, float value1, long key2, float value2)
public static LongFloatHashMap newWithKeysValues(long key1, float value1, long key2, float value2, long key3, float value3)
public static LongFloatHashMap newWithKeysValues(long key1, float value1, long key2, float value2, long key3, float value3, long key4, float value4)
public boolean equals(Object obj)
LongFloatMapMap.equals(Object).equals in interface LongFloatMapequals in class Objectpublic int hashCode()
LongFloatMapMap.hashCode().hashCode in interface LongFloatMaphashCode in class Objectpublic String toString()
LongFloatMaptoString in interface LongFloatMaptoString in interface PrimitiveIterabletoString in class Objectpublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic 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 FloatIterator floatIterator()
floatIterator in interface FloatIterablepublic float[] toArray()
toArray in interface FloatIterablepublic boolean contains(float value)
contains in interface FloatIterablepublic boolean containsAll(float... source)
containsAll in interface FloatIterablepublic boolean containsAll(FloatIterable source)
containsAll in interface FloatIterablepublic void forEach(FloatProcedure procedure)
forEach in interface FloatIterablepublic MutableFloatCollection select(FloatPredicate predicate)
select in interface FloatIterableselect in interface MutableLongFloatMappublic MutableFloatCollection reject(FloatPredicate predicate)
reject in interface FloatIterablereject in interface MutableLongFloatMappublic <V> MutableCollection<V> collect(FloatToObjectFunction<? extends V> function)
collect in interface FloatIterablecollect in interface MutableLongFloatMappublic float detectIfNone(FloatPredicate predicate, float value)
detectIfNone in interface FloatIterablepublic int count(FloatPredicate predicate)
count in interface FloatIterablepublic boolean anySatisfy(FloatPredicate predicate)
anySatisfy in interface FloatIterablepublic boolean allSatisfy(FloatPredicate predicate)
allSatisfy in interface FloatIterablepublic boolean noneSatisfy(FloatPredicate predicate)
noneSatisfy in interface FloatIterablepublic <V> V injectInto(V injectedValue,
ObjectFloatToObjectFunction<? super V,? extends V> function)
injectInto in interface FloatIterablepublic MutableFloatList toList()
toList in interface FloatIterablepublic MutableFloatSet toSet()
toSet in interface FloatIterablepublic MutableFloatBag toBag()
toBag in interface FloatIterablepublic LazyFloatIterable asLazy()
asLazy in interface FloatIterablepublic void clear()
clear in interface MutableLongFloatMappublic void put(long key,
float value)
put in interface MutableLongFloatMappublic void putAll(LongFloatMap map)
putAll in interface MutableLongFloatMappublic void removeKey(long key)
removeKey in interface MutableLongFloatMappublic void remove(long key)
remove in interface MutableLongFloatMappublic float removeKeyIfAbsent(long key,
float value)
removeKeyIfAbsent in interface MutableLongFloatMappublic float getIfAbsentPut(long key,
float value)
getIfAbsentPut in interface MutableLongFloatMappublic float getIfAbsentPut(long key,
FloatFunction0 function)
getIfAbsentPut in interface MutableLongFloatMappublic <P> float getIfAbsentPutWith(long key,
FloatFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableLongFloatMappublic float getIfAbsentPutWithKey(long key,
LongToFloatFunction function)
getIfAbsentPutWithKey in interface MutableLongFloatMappublic float addToValue(long key,
float toBeAdded)
addToValue in interface MutableLongFloatMappublic float updateValue(long key,
float initialValueIfAbsent,
FloatToFloatFunction function)
updateValue in interface MutableLongFloatMappublic LongFloatHashMap withKeyValue(long key1, float value1)
withKeyValue in interface MutableLongFloatMappublic LongFloatHashMap withKeysValues(long key1, float value1, long key2, float value2)
public LongFloatHashMap withKeysValues(long key1, float value1, long key2, float value2, long key3, float value3)
public LongFloatHashMap withKeysValues(long key1, float value1, long key2, float value2, long key3, float value3, long key4, float value4)
public LongFloatHashMap withoutKey(long key)
withoutKey in interface MutableLongFloatMappublic LongFloatHashMap withoutAllKeys(LongIterable keys)
withoutAllKeys in interface MutableLongFloatMappublic MutableLongFloatMap asUnmodifiable()
asUnmodifiable in interface MutableLongFloatMappublic MutableLongFloatMap asSynchronized()
asSynchronized in interface MutableLongFloatMappublic ImmutableLongFloatMap toImmutable()
toImmutable in interface LongFloatMappublic float get(long key)
get in interface LongFloatMappublic float getIfAbsent(long key,
float ifAbsent)
getIfAbsent in interface LongFloatMappublic float getOrThrow(long key)
getOrThrow in interface LongFloatMappublic boolean containsKey(long key)
containsKey in interface LongFloatMappublic boolean containsValue(float value)
containsValue in interface LongFloatMappublic void forEachValue(FloatProcedure procedure)
forEachValue in interface LongFloatMappublic void forEachKey(LongProcedure procedure)
forEachKey in interface LongFloatMappublic void forEachKeyValue(LongFloatProcedure procedure)
forEachKeyValue in interface LongFloatMappublic LazyLongIterable keysView()
keysView in interface LongFloatMappublic RichIterable<LongFloatPair> keyValuesView()
keyValuesView in interface LongFloatMappublic LongFloatHashMap select(LongFloatPredicate predicate)
select in interface LongFloatMapselect in interface MutableLongFloatMappublic LongFloatHashMap reject(LongFloatPredicate predicate)
reject in interface LongFloatMapreject in interface MutableLongFloatMappublic double sum()
sum in interface FloatIterablepublic float max()
max in interface FloatIterablepublic float maxIfEmpty(float defaultValue)
maxIfEmpty in interface FloatIterablepublic float min()
min in interface FloatIterablepublic float minIfEmpty(float defaultValue)
minIfEmpty in interface FloatIterablepublic double average()
average in interface FloatIterablepublic double median()
median in interface FloatIterablepublic float[] toSortedArray()
toSortedArray in interface FloatIterablepublic MutableFloatList toSortedList()
toSortedList in interface FloatIterablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableLongSet keySet()
keySet in interface LongFloatMappublic MutableFloatCollection values()
values in interface LongFloatMapCopyright © 2004–2017. All rights reserved.