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.

From-SVN: r45337
This commit is contained in:
Tom Tromey 2001-08-31 22:31:40 +00:00 committed by Tom Tromey
parent eb3ae3e105
commit 4504a65546
5 changed files with 26 additions and 4 deletions

View file

@ -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);
}