public final class HashMapObjectId<T> extends Object implements OptimizableCollection, Composition, IdentityEqualityLogic
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T object,
long id) |
void |
clear() |
long |
get(T object,
long notFoundId) |
XList<Long> |
getIds() |
XList<T> |
getObjects() |
boolean |
isEmpty() |
int |
iterateIds(_longProcedure procedure) |
int |
iterateIds(Consumer<? super Long> procedure) |
int |
iterateObjects(Consumer<? super T> procedure) |
static <T> HashMapObjectId<T> |
New() |
static <T> HashMapObjectId<T> |
New(int initialSlotLength) |
long |
optimize()
Optimizes the internal storage and returns the remaining amount of entries.
|
boolean |
put(T object,
long id) |
long |
putGet(T object,
long id,
long noOldIdValue) |
long |
size() |
public static final <T> HashMapObjectId<T> New()
public static final <T> HashMapObjectId<T> New(int initialSlotLength)
public boolean add(T object, long id)
public boolean put(T object, long id)
public long putGet(T object, long id, long noOldIdValue)
public long get(T object, long notFoundId)
public long optimize()
optimize in interface OptimizableCollectionpublic int iterateIds(_longProcedure procedure)
public void clear()
Copyright © 2022 MicroStream Software. All rights reserved.