Interface Util.Comparer

Enclosing class:
Util

public static interface Util.Comparer
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compare​(Object a, Object b)
    Returns 0 if a and b are equal, >0 if a is greater than b, or <0 if a is less than b.
  • Method Details

    • compare

      int compare(Object a, Object b)
      Returns 0 if a and b are equal, >0 if a is greater than b, or <0 if a is less than b.