public final class IntHashMap<E> extends Object
Constructor and Description |
---|
IntHashMap()
public constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
clear the table, removing all elements
|
boolean |
containsKey(int key)
check if the key is in the table
|
boolean |
containsKey(Object arg0) |
Iterable<Map.Entry<Integer,E>> |
entrySet()
iterates over all entries in the map
|
E |
get(int key)
get the value associated with key, or null otherwise
|
boolean |
isEmpty() |
Set<Integer> |
keySet() |
E |
put(int key,
E value)
put the value associated with the key
|
boolean |
remove(int key)
remove the key from the table
|
int |
size() |
public void clear()
public boolean containsKey(int key)
key
- the keypublic E get(int key)
key
- the keypublic boolean isEmpty()
public E put(int key, E value)
key
- the keyvalue
- the valuepublic boolean remove(int key)
key
- the key to removepublic int size()
public boolean containsKey(Object arg0)
Copyright © 2022. All rights reserved.