summaryrefslogtreecommitdiff
path: root/libjava/java/util/Map.java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-01 11:14:42 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-01 11:14:42 +0000
commit4fddb45ad89bef0e72f4cc6083f09a6f8af19733 (patch)
tree3ae8e78c344eaaa79a9b787c8b0546d1c8fdb2c0 /libjava/java/util/Map.java
parent59c0021c455e6b40df6b6472728933ddf971fc6e (diff)
downloadgcc-4fddb45ad89bef0e72f4cc6083f09a6f8af19733.tar.gz
2004-08-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/util/Collection.java, java/util/List.java, java/util/Map.java, java/util/Set.java, java/util/SortedMap.java, java/util/SortedSet.java: Added additional exceptions to documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85403 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/util/Map.java')
-rw-r--r--libjava/java/util/Map.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/libjava/java/util/Map.java b/libjava/java/util/Map.java
index f7643f92a5e..75658da5698 100644
--- a/libjava/java/util/Map.java
+++ b/libjava/java/util/Map.java
@@ -106,6 +106,10 @@ public interface Map
*
* @param value the value to search for
* @return true if the map contains the value
+ * @throws ClassCastException if the type of the value is not a valid type
+ * for this map.
+ * @throws NullPointerException if the value is null and the map doesn't
+ * support null values.
*/
boolean containsValue(Object value);
@@ -164,7 +168,8 @@ public interface Map
* @throws ClassCastException if the key or value is of the wrong type
* @throws IllegalArgumentException if something about this key or value
* prevents it from existing in this map
- * @throws NullPointerException if the map forbids null keys or values
+ * @throws NullPointerException if either the key or the value is null,
+ * and the map forbids null keys or values
* @see #containsKey(Object)
*/
Object put(Object key, Object value);
@@ -224,8 +229,12 @@ public interface Map
* @param key the key to remove
* @return the value the key mapped to, or null if not present
* @throws UnsupportedOperationException if deletion is unsupported
+ * @throws NullPointerException if the key is null and this map doesn't
+ * support null keys.
+ * @throws ClassCastException if the type of the key is not a valid type
+ * for this map.
*/
- Object remove(Object o);
+ Object remove(Object key);
/**
* Returns the number of key-value mappings in the map. If there are more