2008-02-19 18:06:52 +00:00
|
|
|
/* Copyright (c) 2008, Avian Contributors
|
|
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software
|
|
|
|
for any purpose with or without fee is hereby granted, provided
|
|
|
|
that the above copyright notice and this permission notice appear
|
|
|
|
in all copies.
|
|
|
|
|
|
|
|
There is NO WARRANTY for this software. See license.txt for
|
|
|
|
details. */
|
|
|
|
|
2007-07-21 20:44:39 +00:00
|
|
|
package java.util;
|
|
|
|
|
|
|
|
public interface Map<K, V> {
|
2007-09-26 14:57:34 +00:00
|
|
|
public boolean isEmpty();
|
|
|
|
|
2007-07-21 20:44:39 +00:00
|
|
|
public int size();
|
|
|
|
|
2009-04-22 16:04:23 +00:00
|
|
|
public boolean containsKey(Object obj);
|
2007-07-22 19:06:21 +00:00
|
|
|
|
2009-04-22 16:04:23 +00:00
|
|
|
public boolean containsValue(Object obj);
|
2007-07-22 19:06:21 +00:00
|
|
|
|
2009-04-22 16:04:23 +00:00
|
|
|
public V get(Object key);
|
2007-07-21 20:44:39 +00:00
|
|
|
|
|
|
|
public V put(K key, V value);
|
|
|
|
|
2007-09-26 14:57:34 +00:00
|
|
|
public void putAll(Map<? extends K,? extends V> elts);
|
|
|
|
|
2009-04-22 16:04:23 +00:00
|
|
|
public V remove(Object key);
|
2007-07-21 20:44:39 +00:00
|
|
|
|
2007-07-21 22:36:51 +00:00
|
|
|
public void clear();
|
|
|
|
|
|
|
|
public Set<Entry<K, V>> entrySet();
|
|
|
|
|
2007-07-22 03:47:08 +00:00
|
|
|
public Set<K> keySet();
|
|
|
|
|
|
|
|
public Collection<V> values();
|
|
|
|
|
2007-07-21 20:44:39 +00:00
|
|
|
public interface Entry<K, V> {
|
|
|
|
public K getKey();
|
|
|
|
|
|
|
|
public V getValue();
|
|
|
|
|
|
|
|
public void setValue(V value);
|
|
|
|
}
|
|
|
|
}
|