| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jutil.java.comparator.ExtendedComparator
A Comparator with more convenient methods than java.util.Comparator.
| Field Summary | |
| static java.lang.String | CVS_REVISION | 
| Constructor Summary | |
| ExtendedComparator() | |
| Method Summary | |
| static ExtendedComparator | ensureExtended(java.util.Comparator comparator)Ensure that the result is an ExtendedComparator. | 
|  boolean | greater(java.lang.Object first,
        java.lang.Object second)Check whether or not the first object is greater than the second one. | 
|  java.lang.Object | max(java.lang.Object first,
    java.lang.Object second)Return the maximum of both objects. | 
|  java.lang.Object | min(java.lang.Object first,
    java.lang.Object second)Return the minimum of both objects. | 
|  boolean | notGreater(java.lang.Object first,
           java.lang.Object second)Check whether or not the first object is smaller than or equal to the second one. | 
|  boolean | notSmaller(java.lang.Object first,
           java.lang.Object second)Check whether or not the first object is greater than or equal to the second one. | 
|  boolean | smaller(java.lang.Object first,
        java.lang.Object second)Check whether or not the first object is smaller than the second one. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface java.util.Comparator | 
| compare, equals | 
| Field Detail | 
public static final java.lang.String CVS_REVISION
| Constructor Detail | 
public ExtendedComparator()
| Method Detail | 
public java.lang.Object max(java.lang.Object first,
                            java.lang.Object second)
Return the maximum of both objects. In case of a tie, any one of both can be returned.
first - The first objectsecond - The second object
public java.lang.Object min(java.lang.Object first,
                            java.lang.Object second)
Return the minimum of both objects. In case of a tie, any one of both can be returned.
first - The first objectsecond - The second object
public boolean greater(java.lang.Object first,
                       java.lang.Object second)
Check whether or not the first object is greater than the second one.
first - The first objectsecond - The second object
public boolean smaller(java.lang.Object first,
                       java.lang.Object second)
Check whether or not the first object is smaller than the second one.
first - The first objectsecond - The second object
public boolean notSmaller(java.lang.Object first,
                          java.lang.Object second)
Check whether or not the first object is greater than or equal to the second one.
first - The first objectsecond - The second object
public boolean notGreater(java.lang.Object first,
                          java.lang.Object second)
Check whether or not the first object is smaller than or equal to the second one.
first - The first objectsecond - The second objectpublic static ExtendedComparator ensureExtended(java.util.Comparator comparator)
comparator - The comparator of which one wants an ExtendedComparator
        that behaves the same.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||