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