- All Known Subinterfaces:
- ConcurrentMap<K,V>, SortedMap<K,V>
- All Known Implementing Classes:
- AbstractMap, Attributes, AuthProvider, ConcurrentHashMap, EnumMap, HashMap, Hashtable, IdentityHashMap, LinkedHashMap, PrinterStateReasons, Properties, Provider, RenderingHints, TabularDataSupport, TreeMap, UIDefaults, WeakHashMap
- See Also:
- Top Examples, Source Code,
Object.hashCode() , contains(Object key) , equals , putAll(Map) ,
Collection ,
Set
void clear() - See Also:
- UnsupportedOperationException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
boolean containsKey(Object key) - See Also:
- NullPointerException, ClassCastException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
boolean containsValue(Object value) - See Also:
- NullPointerException, ClassCastException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
Set<Map.Entry<K,V>> entrySet() - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[313]Loop through a Map entries By Anonymous on 2005/09/10 10:13:08 Rate
for ( Iterator iterator = aMap.entrySet ( ) .iterator ( ) ; iterator.hasNext ( ) ; ) { Map.Entry entry = ( Map.Entry ) iterator.next ( ) ; String key = ( String ) entry.getKey ( ) ; String value = ( String ) entry.getValue ( ) ; }
boolean equals(Object o) - See Also:
Hashtable , Object.hashCode()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
V get(Object key) - See Also:
containsKey(Object) , NullPointerException, ClassCastException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
int hashCode() - See Also:
equals(Object) , Object.equals(Object)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
boolean isEmpty() - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
Set<K> keySet() - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[361]Loop through a Map keys By Anonymous on 2003/08/20 12:58:24 Rate
//ssMap is populated Map Iterator it = ssMap.keySet ( ) .iterator ( ) ; while ( it.hasNext ( ) ) { Foo foo = ( Foo ) it.next ( ) ; System.out.println ( ssMap.get ( foo ) ) ; }
public Object put(Object key,
Object value) - See Also:
- NullPointerException, IllegalArgumentException, ClassCastException, UnsupportedOperationException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
V put(K key,
V value) - See Also:
- NullPointerException, IllegalArgumentException, ClassCastException, UnsupportedOperationException,
m.containsKey(k)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
void putAll(Map<? extends K,? extends V> t) - See Also:
- NullPointerException, IllegalArgumentException, ClassCastException, UnsupportedOperationException,
put(k, v)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[553]Merge two maps By Hongyi Jiang on 2004/09/15 18:04:33 Rate
static Map newAttributeMap ( Map defaults, Map overrides ) { Map result = new HashMap ( defaults ) ; result.putAll ( overrides ) ; return result; }
V remove(Object key) - See Also:
- UnsupportedOperationException, NullPointerException, ClassCastException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
int size() - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
Collection<V> values() - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
| Popular Tags |