public class UniqueIdMap extends Object
Constructor and Description |
---|
UniqueIdMap()
Create a new UniqueIdMap with default initial capacity.
|
UniqueIdMap(int n)
Create a new UniqueIdMap with the given initial capacity.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int id)
Get the element with the provided unique identifier.
|
int |
put(Object obj)
Add an element to the map.
|
void |
remove(int id)
Remove the element with the provided unique identifier.
|
public UniqueIdMap()
public UniqueIdMap(int n)
public int put(Object obj)
public Object get(int id)
public void remove(int id)
Copyright © 2023. All rights reserved.