public class JreMapFromIntTo<T> extends Object implements MapFromIntTo<T>
Constructor and Description |
---|
JreMapFromIntTo() |
Modifier and Type | Method and Description |
---|---|
T |
get(int key)
Retrieves a value for the specified key.
|
boolean |
hasKey(int key)
Indicates whether the map contains a value for the specified key.
|
ArrayOfInt |
keys()
The keys contained within this map.
|
void |
put(int key,
T value)
Associates a value to the specified key.
|
void |
remove(int key)
Removes the value associated with the specified value, if one exists.
|
ArrayOf<T> |
values()
The values contained in this map.
|
public T get(int key)
MapFromIntTo
get
in interface MapFromIntTo<T>
public boolean hasKey(int key)
MapFromIntTo
hasKey
in interface MapFromIntTo<T>
public ArrayOfInt keys()
MapFromIntTo
keys
in interface MapFromIntTo<T>
public void put(int key, T value)
MapFromIntTo
put
in interface MapFromIntTo<T>
public void remove(int key)
MapFromIntTo
remove
in interface MapFromIntTo<T>
public ArrayOf<T> values()
MapFromIntTo
values
in interface MapFromIntTo<T>
Copyright © 2016. All rights reserved.