/[classpath]/classpath/java/util/Comparator.java
ViewVC logotype

Diff of /classpath/java/util/Comparator.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by mark, Tue Jan 22 22:27:01 2002 UTC revision 1.7.2.1 by tromey, Thu Aug 5 21:09:36 2004 UTC
# Line 1  Line 1 
1  /* Comparator.java -- Interface for objects that specify an ordering  /* Comparator.java -- Interface for objects that specify an ordering
2     Copyright (C) 1998, 2001 Free Software Foundation, Inc.     Copyright (C) 1998, 2001, 2004 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 71  package java.util; Line 71  package java.util;
71   * @since 1.2   * @since 1.2
72   * @status updated to 1.4   * @status updated to 1.4
73   */   */
74  public interface Comparator  public interface Comparator<T>
75  {  {
76    /**    /**
77     * Return an integer that is negative, zero or positive depending on whether     * Return an integer that is negative, zero or positive depending on whether
# Line 102  public interface Comparator Line 102  public interface Comparator
102     * @throws ClassCastException if the elements are not of types that can be     * @throws ClassCastException if the elements are not of types that can be
103     *         compared by this ordering.     *         compared by this ordering.
104     */     */
105    int compare(Object o1, Object o2);    int compare(T o1, T o2);
106    
107    /**    /**
108     * Return true if the object is equal to this object.  To be     * Return true if the object is equal to this object.  To be

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.7.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26