@NotThreadSafe public class IntFloatMap extends Object implements com.helger.commons.lang.IHasSize, Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
IntFloatMap.IConsumer |
static interface |
IntFloatMap.IKeyToValueFunction
Represents a function that accepts an key-type argument and produces a
value-typed result.
|
| Modifier and Type | Field and Description |
|---|---|
static float |
NO_VALUE |
| Constructor and Description |
|---|
IntFloatMap() |
IntFloatMap(int nSize) |
IntFloatMap(int nSize,
float fFillFactor) |
| Modifier and Type | Method and Description |
|---|---|
float |
computeIfAbsent(int key,
IntFloatMap.IKeyToValueFunction aProvider) |
void |
forEach(IntFloatMap.IConsumer aConsumer) |
float |
get(int key) |
float |
get(int key,
float fDefault) |
boolean |
isEmpty() |
float |
put(int key,
float value) |
float |
remove(int key) |
int |
size() |
public static final float NO_VALUE
public IntFloatMap()
public IntFloatMap(int nSize)
public IntFloatMap(int nSize,
float fFillFactor)
public float get(int key)
public float get(int key,
float fDefault)
public float computeIfAbsent(int key,
@Nonnull
IntFloatMap.IKeyToValueFunction aProvider)
public float put(int key,
float value)
public float remove(int key)
@Nonnegative public int size()
size in interface com.helger.commons.lang.IHasSizepublic boolean isEmpty()
isEmpty in interface com.helger.commons.lang.IHasSizepublic void forEach(@Nonnull IntFloatMap.IConsumer aConsumer)
Copyright © 2017–2020 Philip Helger. All rights reserved.