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