summaryrefslogtreecommitdiff
path: root/java/util/Collections.java
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2001-10-19 07:06:45 +0000
committerEric Blake <ebb9@byu.net>2001-10-19 07:06:45 +0000
commitcceec37eda03402d55ff31efd7677c0dbd0f77c3 (patch)
treef8250556f430f6faa922daee04a0d55cc8d80223 /java/util/Collections.java
parent8a61bfc72352d331a1bbc397b2aac89d758a68ff (diff)
downloadclasspath-cceec37eda03402d55ff31efd7677c0dbd0f77c3.tar.gz
2001-10-19 Eric Blake <ebb9@email.byu.edu>
* java/util/IdentityHashMap.java: Improve javadoc, fix member visibility for less code generation. (modCount): Add fail-safe iteration. (entries): Cache the entry set. (hash): Rename from getHash, and make it more powerful - common code for iterating over the table is now in one location. (entrySet): Add missing method hashCode, optimize methods contains and remove. (equals, putAll): Add missing (but useless) methods. (hashCode): Add missing (and important) method. (keySet): Add missing method hashCode. (values): Add missing method remove. (class IdentityIterator): Add fail-safe iteration, fix next to be correctly parameterized. (class IdentityEntry): Add a class for entrySet iteration. * java/util/AbstractMap.java (hashCode): Optimize. * java/util/Collections.java (SingletonSet): Fix visibility for less code generation.
Diffstat (limited to 'java/util/Collections.java')
-rw-r--r--java/util/Collections.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/util/Collections.java b/java/util/Collections.java
index 455226b26..e41070bdc 100644
--- a/java/util/Collections.java
+++ b/java/util/Collections.java
@@ -1261,10 +1261,10 @@ public class Collections
/**
- * The single element.
+ * The single element; package visible for use in nested class.
* @serial the singleton
*/
- private final Object element;
+ final Object element;
/**
* Construct a singleton.