javaprims.h: Updated class declaration list.
* 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. From-SVN: r54743
This commit is contained in:
parent
0fd534ed06
commit
3831381763
31 changed files with 2304 additions and 1518 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue