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
|
@ -296,14 +296,14 @@ public interface Map
|
|||
*/
|
||||
public Object setValue(Object value);
|
||||
|
||||
|
||||
/**
|
||||
* Returns the hash code of the entry. This is defined as the exclusive-or
|
||||
* of the hashcodes of the key and value (using 0 for null). In other
|
||||
* words, this must be:
|
||||
* <pre>
|
||||
* (getKey() == null ? 0 : getKey().hashCode()) ^
|
||||
* (getValue() == null ? 0 : getValue().hashCode())
|
||||
* </pre>
|
||||
* Returns the hash code of the entry. This is defined as the
|
||||
* exclusive-or of the hashcodes of the key and value (using 0 for
|
||||
* <code>null</code>). In other words, this must be:
|
||||
*
|
||||
<p><pre>(getKey() == null ? 0 : getKey().hashCode())
|
||||
^ (getValue() == null ? 0 : getValue().hashCode())</pre>
|
||||
*
|
||||
* @return the hash code
|
||||
*/
|
||||
|
@ -313,16 +313,16 @@ public interface Map
|
|||
* Compares the specified object with this entry. Returns true only if
|
||||
* the object is a mapping of identical key and value. In other words,
|
||||
* this must be:
|
||||
* <pre>
|
||||
* (o instanceof Map.Entry)
|
||||
* && (getKey() == null ? ((HashMap) o).getKey() == null
|
||||
* : getKey().equals(((HashMap) o).getKey()))
|
||||
* && (getValue() == null ? ((HashMap) o).getValue() == null
|
||||
* : getValue().equals(((HashMap) o).getValue()))
|
||||
* </pre>
|
||||
*
|
||||
<p><pre>(o instanceof Map.Entry)
|
||||
&& (getKey() == null ? ((HashMap) o).getKey() == null
|
||||
: getKey().equals(((HashMap) o).getKey()))
|
||||
&& (getValue() == null ? ((HashMap) o).getValue() == null
|
||||
: getValue().equals(((HashMap) o).getValue()))</pre>
|
||||
*
|
||||
* @param o the object to compare
|
||||
* @return true if it is equal
|
||||
*
|
||||
* @return <code>true</code> if it is equal
|
||||
*/
|
||||
public boolean equals(Object o);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue