|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IntKeyMap<V>
This interface represents maps from int values to objects.
Map| Method Summary | |
|---|---|
void |
clear()
Clears this map. |
boolean |
containsKey(int key)
Indicates whether this map contains a mapping from a specified key. |
boolean |
containsValue(java.lang.Object value)
Indicates whether this map contains a mapping to a specified value. |
IntKeyMapIterator<V> |
entries()
Returns an iterator over the entries of this map. |
boolean |
equals(java.lang.Object obj)
Indicates whether this map is equal to some object. |
V |
get(int key)
Maps a specified key to a value. |
int |
hashCode()
Returns a hash code value for this map. |
boolean |
isEmpty()
Indicates whether this map is empty. |
IntSet |
keySet()
Returns a set view of the keys of this map. |
V |
put(int key,
V value)
Adds a mapping from a specified key to a specified value to this map. |
void |
putAll(IntKeyMap<V> map)
Adds all mappings from a specified map to this map. |
V |
remove(int key)
Removes the mapping from a specified key from this map. |
int |
size()
Returns the size of this map. |
java.util.Collection<V> |
values()
Returns a collection view of the values in this map. |
| Method Detail |
|---|
void clear()
boolean containsKey(int key)
key - the key to test for.
boolean containsValue(java.lang.Object value)
value - the value to test for.
IntKeyMapIterator<V> entries()
boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object with which to compare this map.
V get(int key)
key - the key to map to a value.
int hashCode()
hashCode in class java.lang.Objectboolean isEmpty()
IntSet keySet()
V put(int key,
V value)
key - the key of the mapping to add to this map.value - the value of the mapping to add to this map.
java.lang.UnsupportedOperationException - if the operation is not supported by this map.void putAll(IntKeyMap<V> map)
map - the map whose mappings to add to this map.
java.lang.NullPointerException - if map is null.
java.lang.UnsupportedOperationException - if the operation is not supported by this map.V remove(int key)
key - the key whose mapping to remove from this map.
java.lang.UnsupportedOperationException - if the operation is not supported by this map.int size()
java.util.Collection<V> values()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||