source: branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/pal/util/Comparable.java @ 1573

Last change on this file since 1573 was 1573, checked in by rkrimmel, 10 years ago

Now really adding PAL Library

File size: 1013 bytes
Line 
1// Comparable.java
2//
3// (c) 1999-2001 PAL Development Core Team
4//
5// This package may be distributed under the
6// terms of the Lesser GNU General Public License (LGPL)
7
8package de.ugoe.cs.autoquest.tasktrees.alignment.pal.util;
9
10/**
11 * interface for an object that is comparable.
12 * This interface is analogous to the Comparable interface in
13 * Java 1.2, and it should be superceded by the JDK 1.2 collections
14 * framework when PAL is moved to 1.2.
15 *
16 * @version $Id: Comparable.java,v 1.2 2001/07/13 14:39:13 korbinian Exp $
17 *
18 * @author Alexei Drummond
19 */
20public interface Comparable
21{
22        /**
23         * Returns a number representing the ordering relationship that
24         * the object has with the given object.
25         * A negative number indicates that the object is "smaller" than
26         * the parameter, a positive number means it is "larger" and zero
27         * indicates that the objects are equal.
28         */
29        int compareTo(Object o);
30
31        /**
32         * Returns true if this object is equal to the given object.
33         */
34        boolean equals(Object o);
35}
Note: See TracBrowser for help on using the repository browser.