diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-18 15:40:16 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-18 15:40:16 +0000 |
commit | 0662d7053a08078b08d9cca058714f14f3f2fbcd (patch) | |
tree | 6b8dcd38b7dbb7c4c618080eb1958b6f042d581c /libjava/java/util/List.java | |
parent | 23266d1bf15afc4361ed8af5eeee636790929b35 (diff) | |
download | ppe42-gcc-0662d7053a08078b08d9cca058714f14f3f2fbcd.tar.gz ppe42-gcc-0662d7053a08078b08d9cca058714f14f3f2fbcd.zip |
* gcj/javaprims.h: Updated class declaration list.
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added
PropertyPermissionCollection.java.
* java/lang/Thread.java (group, name): Now package-private.
* java/lang/ThreadGroup.java: Re-merge with Classpath.
* java/util/AbstractList.java: Likewise.
* java/util/AbstractMap.java: Likewise.
* java/util/Calendar.java: Likewise.
* java/util/Collections.java: Likewise.
* java/util/HashMap.java: Likewise.
* java/util/Hashtable.java: Likewise.
* java/util/LinkedHashMap.java: Likewise.
* java/util/LinkedList.java: Likewise.
* java/util/List.java: Likewise.
* java/util/ListResourceBundle.java: Likewise.
* java/util/Map.java: Likewise.
* java/util/Observable.java: Likewise.
* java/util/Properties.java: Likewise.
* java/util/PropertyPermission.java: Likewise.
* java/util/PropertyPermissionCollection.java: Likewise.
* java/util/PropertyResourceBundle.java: Likewise.
* java/util/Random.java: Likewise.
* java/util/SimpleTimeZone.java: Likewise.
* java/util/StringTokenizer.java: Likewise.
* java/util/TimerTask.java: Likewise.
* java/util/TreeMap.java: Likewise.
* java/util/WeakHashMap.java: Likewise.
* java/util/jar/Attributes.java: Likewise.
* java/util/jar/JarException.java: Likewise.
* java/util/jar/Manifest.java: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54743 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/util/List.java')
-rw-r--r-- | libjava/java/util/List.java | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/libjava/java/util/List.java b/libjava/java/util/List.java index 0d8df5d156c..22a6b83fc37 100644 --- a/libjava/java/util/List.java +++ b/libjava/java/util/List.java @@ -201,7 +201,7 @@ public interface List extends Collection * @see Object#equals(Object) * @see #hashCode() */ - /* boolean equals(Object o);*/ + boolean equals(Object o); /** * Get the element at a given index in this list. @@ -213,18 +213,20 @@ public interface List extends Collection Object get(int index); /** - * Obtain a hash code for this list. In order to obey the general contract of - * the hashCode method of class Object, this value is calculated as follows: - * <pre> - * hashCode = 1; - * Iterator i = list.iterator(); - * while (i.hasNext()) - * { - * Object obj = i.next(); - * hashCode = 31 * hashCode + (obj == null ? 0 : obj.hashCode()); - * } - * </pre> - * This ensures that the general contract of Object.hashCode() is adhered to. + * Obtains a hash code for this list. In order to obey the general + * contract of the hashCode method of class Object, this value is + * calculated as follows: + * +<p><pre>hashCode = 1; +Iterator i = list.iterator(); +while (i.hasNext()) +{ + Object obj = i.next(); + hashCode = 31 * hashCode + (obj == null ? 0 : obj.hashCode()); +}</pre> + * + * <p>This ensures that the general contract of Object.hashCode() + * is adhered to. * * @return the hash code of this list * @see Object#hashCode() |