Comparator
Keywords: weiss.util.Comparator interface

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weiss.util
Interface Comparator<AnyType>

All Superinterfaces:
  java.io.Serializable

    public interface Comparator<AnyType>

extends java.io.Serializable

Comparator function object interface.

Method Summary
`int` | `compare(AnyType lhs, AnyType rhs)` Return the result of comparing lhs and rhs.

Method Detail

### compare

    int compare(AnyType lhs,
                AnyType rhs)

  Return the result of comparing lhs and rhs.

  Parameters:
    `lhs` - first object.
    `rhs` - second object.
  Returns:
    < 0 if lhs is less than rhs, 0 if lhs is equal to rhs, > 0 if lhs is greater than rhs.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD