|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
unbbayes.util.ArrayMap<K,V>
public class ArrayMap<K,V>
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
ArrayMap()
|
Method Summary | |
---|---|
void |
clear()
Apaga todos os elementos do ArrayMap. |
Set<Map.Entry<K,V>> |
entrySet()
|
V |
get(Object key)
Recupera do ArrayMap o valor associado a uma chave. |
ArrayList<K> |
getKeys()
Retorna um ArrayList das chaves. |
V |
put(K key,
V value)
Insere no ArrayMap um par chave/valor. |
V |
remove(Object key)
Apaga um elemento do ArrayMap. |
int |
size()
Retorna o nÔøΩmero de pares chave/valor. |
Methods inherited from class java.util.AbstractMap |
---|
clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArrayMap()
Method Detail |
---|
public V put(K key, V value)
put
in interface Map<K,V>
put
in class AbstractMap<K,V>
key
- chave a ser inserida.value
- valor a ser inserida.
public V get(Object key)
get
in interface Map<K,V>
get
in class AbstractMap<K,V>
key
- chave qual se deseja recuperar o valor.
public ArrayList<K> getKeys()
public int size()
size
in interface Map<K,V>
size
in class AbstractMap<K,V>
public V remove(Object key)
remove
in interface Map<K,V>
remove
in class AbstractMap<K,V>
key
-
public void clear()
clear
in interface Map<K,V>
clear
in class AbstractMap<K,V>
public Set<Map.Entry<K,V>> entrySet()
entrySet
in interface Map<K,V>
entrySet
in class AbstractMap<K,V>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |