public class FloatLongHashMap extends Object implements MutableFloatLongMap, Externalizable
| Constructor and Description |
|---|
FloatLongHashMap() |
FloatLongHashMap(FloatLongMap map) |
FloatLongHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(float 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() |
MutableFloatLongMap |
asSynchronized() |
MutableFloatLongMap |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V> MutableCollection<V> |
collect(LongToObjectFunction<? 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(long value) |
boolean |
containsAll(long... source) |
boolean |
containsAll(LongIterable source) |
boolean |
containsKey(float key) |
boolean |
containsValue(long value) |
int |
count(LongPredicate predicate) |
long |
detectIfNone(LongPredicate predicate,
long value) |
boolean |
equals(Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEach(LongProcedure procedure) |
void |
forEachKey(FloatProcedure procedure) |
void |
forEachKeyValue(FloatLongProcedure procedure) |
void |
forEachValue(LongProcedure procedure) |
long |
get(float key) |
long |
getIfAbsent(float key,
long ifAbsent) |
long |
getIfAbsentPut(float key,
long value) |
long |
getIfAbsentPut(float key,
LongFunction0 function) |
<P> long |
getIfAbsentPutWith(float key,
LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(float key,
FloatToLongFunction function) |
long |
getOrThrow(float key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
MutableFloatSet |
keySet() |
LazyFloatIterable |
keysView() |
RichIterable<FloatLongPair> |
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) |
static FloatLongHashMap |
newWithKeysValues(float key1,
long value1) |
static FloatLongHashMap |
newWithKeysValues(float key1,
long value1,
float key2,
long value2) |
static FloatLongHashMap |
newWithKeysValues(float key1,
long value1,
float key2,
long value2,
float key3,
long value3) |
static FloatLongHashMap |
newWithKeysValues(float key1,
long value1,
float key2,
long value2,
float key3,
long value3,
float key4,
long value4) |
boolean |
noneSatisfy(LongPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
void |
put(float key,
long value) |
void |
putAll(FloatLongMap map) |
void |
readExternal(ObjectInput in) |
FloatLongHashMap |
reject(FloatLongPredicate predicate) |
MutableLongCollection |
reject(LongPredicate predicate) |
void |
remove(float key) |
void |
removeKey(float key) |
long |
removeKeyIfAbsent(float key,
long value) |
FloatLongHashMap |
select(FloatLongPredicate predicate) |
MutableLongCollection |
select(LongPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
long[] |
toArray() |
MutableLongBag |
toBag() |
ImmutableFloatLongMap |
toImmutable() |
MutableLongList |
toList() |
MutableLongSet |
toSet() |
long[] |
toSortedArray() |
MutableLongList |
toSortedList() |
String |
toString()
Returns a string representation of this FloatLongMap.
|
long |
updateValue(float key,
long initialValueIfAbsent,
LongToLongFunction function) |
MutableLongCollection |
values() |
FloatLongHashMap |
withKeysValues(float key1,
long value1,
float key2,
long value2) |
FloatLongHashMap |
withKeysValues(float key1,
long value1,
float key2,
long value2,
float key3,
long value3) |
FloatLongHashMap |
withKeysValues(float key1,
long value1,
float key2,
long value2,
float key3,
long value3,
float key4,
long value4) |
FloatLongHashMap |
withKeyValue(float key1,
long value1) |
FloatLongHashMap |
withoutAllKeys(FloatIterable keys) |
FloatLongHashMap |
withoutKey(float key) |
void |
writeExternal(ObjectOutput out) |
public FloatLongHashMap()
public FloatLongHashMap(int initialCapacity)
public FloatLongHashMap(FloatLongMap map)
public static FloatLongHashMap newWithKeysValues(float key1, long value1)
public static FloatLongHashMap newWithKeysValues(float key1, long value1, float key2, long value2)
public static FloatLongHashMap newWithKeysValues(float key1, long value1, float key2, long value2, float key3, long value3)
public static FloatLongHashMap newWithKeysValues(float key1, long value1, float key2, long value2, float key3, long value3, float key4, long value4)
public boolean equals(Object obj)
FloatLongMapMap.equals(Object).equals in interface FloatLongMapequals in class Objectpublic int hashCode()
FloatLongMapMap.hashCode().hashCode in interface FloatLongMaphashCode in class Objectpublic String toString()
FloatLongMaptoString in interface FloatLongMaptoString 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 LongIterator longIterator()
longIterator 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 void forEach(LongProcedure procedure)
forEach in interface LongIterablepublic MutableLongCollection select(LongPredicate predicate)
select in interface LongIterableselect in interface MutableFloatLongMappublic MutableLongCollection reject(LongPredicate predicate)
reject in interface LongIterablereject in interface MutableFloatLongMappublic <V> MutableCollection<V> collect(LongToObjectFunction<? extends V> function)
collect in interface LongIterablecollect in interface MutableFloatLongMappublic long detectIfNone(LongPredicate predicate, long value)
detectIfNone 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 <V> V injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto 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 void clear()
clear in interface MutableFloatLongMappublic void put(float key,
long value)
put in interface MutableFloatLongMappublic void putAll(FloatLongMap map)
putAll in interface MutableFloatLongMappublic void removeKey(float key)
removeKey in interface MutableFloatLongMappublic void remove(float key)
remove in interface MutableFloatLongMappublic long removeKeyIfAbsent(float key,
long value)
removeKeyIfAbsent in interface MutableFloatLongMappublic long getIfAbsentPut(float key,
long value)
getIfAbsentPut in interface MutableFloatLongMappublic long getIfAbsentPut(float key,
LongFunction0 function)
getIfAbsentPut in interface MutableFloatLongMappublic <P> long getIfAbsentPutWith(float key,
LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableFloatLongMappublic long getIfAbsentPutWithKey(float key,
FloatToLongFunction function)
getIfAbsentPutWithKey in interface MutableFloatLongMappublic long addToValue(float key,
long toBeAdded)
addToValue in interface MutableFloatLongMappublic long updateValue(float key,
long initialValueIfAbsent,
LongToLongFunction function)
updateValue in interface MutableFloatLongMappublic FloatLongHashMap withKeyValue(float key1, long value1)
withKeyValue in interface MutableFloatLongMappublic FloatLongHashMap withKeysValues(float key1, long value1, float key2, long value2)
public FloatLongHashMap withKeysValues(float key1, long value1, float key2, long value2, float key3, long value3)
public FloatLongHashMap withKeysValues(float key1, long value1, float key2, long value2, float key3, long value3, float key4, long value4)
public FloatLongHashMap withoutKey(float key)
withoutKey in interface MutableFloatLongMappublic FloatLongHashMap withoutAllKeys(FloatIterable keys)
withoutAllKeys in interface MutableFloatLongMappublic MutableFloatLongMap asUnmodifiable()
asUnmodifiable in interface MutableFloatLongMappublic MutableFloatLongMap asSynchronized()
asSynchronized in interface MutableFloatLongMappublic ImmutableFloatLongMap toImmutable()
toImmutable in interface FloatLongMappublic long get(float key)
get in interface FloatLongMappublic long getIfAbsent(float key,
long ifAbsent)
getIfAbsent in interface FloatLongMappublic long getOrThrow(float key)
getOrThrow in interface FloatLongMappublic boolean containsKey(float key)
containsKey in interface FloatLongMappublic boolean containsValue(long value)
containsValue in interface FloatLongMappublic void forEachValue(LongProcedure procedure)
forEachValue in interface FloatLongMappublic void forEachKey(FloatProcedure procedure)
forEachKey in interface FloatLongMappublic void forEachKeyValue(FloatLongProcedure procedure)
forEachKeyValue in interface FloatLongMappublic LazyFloatIterable keysView()
keysView in interface FloatLongMappublic RichIterable<FloatLongPair> keyValuesView()
keyValuesView in interface FloatLongMappublic FloatLongHashMap select(FloatLongPredicate predicate)
select in interface FloatLongMapselect in interface MutableFloatLongMappublic FloatLongHashMap reject(FloatLongPredicate predicate)
reject in interface FloatLongMapreject in interface MutableFloatLongMappublic 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[] toSortedArray()
toSortedArray in interface LongIterablepublic MutableLongList toSortedList()
toSortedList in interface LongIterablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableFloatSet keySet()
keySet in interface FloatLongMappublic MutableLongCollection values()
values in interface FloatLongMapCopyright © 2004–2017. All rights reserved.