|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ranides.assira.collection.map.RandomAccessMap<K,V>
K - V - public class RandomAccessMap<K,V>
Domyślna implementacja interfejsu ListableMap za pomocą funkcjonalności
z apache commons (jako bazową strukturę danych wykorzystano ListOrderedMap,
której semantyka jest inna, ale umożliwiająca realizację kontraktu
ListableMap).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
RandomAccessMap()
Tworzy nową pustą mapę. |
|
RandomAccessMap(Map<? extends K,? extends V> map)
Tworzy nową mapę i wypełnia określoną zawartością . |
|
| Method Summary | |
|---|---|
List<V> |
asListAdapter()
Zwraca listę wartości zapisanych w mapie - modyfikacja listy zmienia treść mapy (i vice versa). |
V |
at(int index)
Zwraca wartość zapisaną pod wskazanym indeksem. |
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
List<Map.Entry<K,V>> |
entryList()
Zwraca listę par zapisanych w mapie - modyfikacja listy zmienia treść mapy (i vice versa). |
Set<Map.Entry<K,V>> |
entrySet()
|
V |
get(Object key)
|
boolean |
isEmpty()
|
Iterator<V> |
iterator()
|
Set<K> |
keySet()
|
List<K> |
keysList()
Zwraca listę kluczy zapisanych w mapie - modyfikacja listy zmienia treść mapy (i vice versa). |
V |
put(K key,
V value)
|
void |
putAll(Map<? extends K,? extends V> map)
|
V |
remove(Object key)
|
int |
size()
|
String |
toString()
|
Collection<V> |
values()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public RandomAccessMap()
public RandomAccessMap(Map<? extends K,? extends V> map)
map - | Method Detail |
|---|
public List<V> asListAdapter()
ListableMap
asListAdapter in interface ListableMap<K,V>public V at(int index)
ListableMap
at in interface ListableMap<K,V>public Iterator<V> iterator()
iterator in interface Iterable<V>public int size()
size in interface Map<K,V>public boolean isEmpty()
isEmpty in interface Map<K,V>public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>public V get(Object key)
get in interface Map<K,V>
public V put(K key,
V value)
put in interface Map<K,V>public V remove(Object key)
remove in interface Map<K,V>public void putAll(Map<? extends K,? extends V> map)
putAll in interface Map<K,V>public void clear()
clear in interface Map<K,V>public Set<K> keySet()
keySet in interface Map<K,V>public Collection<V> values()
values in interface Map<K,V>public Set<Map.Entry<K,V>> entrySet()
entrySet in interface Map<K,V>public List<K> keysList()
ListableMap
keysList in interface ListableMap<K,V>public List<Map.Entry<K,V>> entryList()
ListableMap
entryList in interface ListableMap<K,V>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||