@NotThreadSafe public class IntIntMap extends Object implements com.helger.commons.lang.IHasSize, Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
IntIntMap.IConsumer |
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_VALUE |
| Constructor and Description |
|---|
IntIntMap() |
IntIntMap(int nSize) |
IntIntMap(int nSize,
float fFillFactor) |
| Modifier and Type | Method and Description |
|---|---|
int |
computeIfAbsent(int key,
IntUnaryOperator aProvider) |
void |
forEach(IntIntMap.IConsumer aConsumer) |
int |
get(int key) |
int |
get(int key,
int nDefault) |
boolean |
isEmpty() |
int |
put(int key,
int value) |
int |
remove(int key) |
int |
size() |
public static final int NO_VALUE
public IntIntMap()
public IntIntMap(int nSize)
public IntIntMap(int nSize,
float fFillFactor)
public int get(int key)
public int get(int key,
int nDefault)
public int computeIfAbsent(int key,
@Nonnull
IntUnaryOperator aProvider)
public int put(int key,
int value)
public int 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 IntIntMap.IConsumer aConsumer)
Copyright © 2017–2020 Philip Helger. All rights reserved.