re PR libgcj/1758 (java.util package lacks TreeMap)

* java/util/TreeMap.java: New file.
        * java/util/TreeSet.java: New file.
        * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
        * Makefile.in: Rebuilt.
        * java/util/HashSet.java (clone): Use constructor instead of calling
        clone on itself.
        * java/util/SortedSet.java: Sync with classpath.
        * java/util/HashMap.java (hash): Use if statement instead of ternary,
        for clarity.
	Resolves PR libgcj/1758.
	Resolves PR java/1684.

From-SVN: r39657
This commit is contained in:
Bryce McKinlay 2001-02-14 04:44:21 +00:00 committed by Bryce McKinlay
parent cbc59f0118
commit a142a99626
8 changed files with 1781 additions and 24 deletions

View file

@ -8,7 +8,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@ -31,7 +31,8 @@ executable file might be covered by the GNU General Public License. */
package java.util;
public interface SortedSet extends Set {
public interface SortedSet extends Set
{
Comparator comparator();
Object first();
SortedSet headSet(Object toElement);