diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-31 22:31:40 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-31 22:31:40 +0000 |
| commit | 46a70e7d0eee7274c581a4a11446e5d524e31807 (patch) | |
| tree | 58afefccc03082c2ba80876586e2554dee250583 /libjava/java/util | |
| parent | 821653e13844241cf2cebedbd153bd9482c54b51 (diff) | |
| download | ppe42-gcc-46a70e7d0eee7274c581a4a11446e5d524e31807.tar.gz ppe42-gcc-46a70e7d0eee7274c581a4a11446e5d524e31807.zip | |
Re-merge with Classpath:
* java/util/Comparator (equals): Added.
* java/io/PipedWriter.java (write): Changed argument to `int'.
* java/io/FileDescriptor.java (FileDescriptor()): New
constructor.
* java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45337 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/util')
| -rw-r--r-- | libjava/java/util/Comparator.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libjava/java/util/Comparator.java b/libjava/java/util/Comparator.java index 4b09e0fdab0..fc61fc30280 100644 --- a/libjava/java/util/Comparator.java +++ b/libjava/java/util/Comparator.java @@ -1,5 +1,5 @@ /* Comparator.java -- Interface for objects that specify an ordering - Copyright (C) 1998 Free Software Foundation, Inc. + Copyright (C) 1998, 2001 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -61,4 +61,13 @@ public interface Comparator * compared by this ordering. */ int compare(Object o1, Object o2); + + /** + * Return true if the object is equal to this object. To be + * considered equal, the argument object must satisfy the constraints + * of <code>Object.equals()</code>, be a Comparator, and impose the + * same ordering as this Comparator. + * @param obj The object + */ + boolean equals(Object obj); } |

