Interface LongComparator


public interface LongComparator
Interface that defines a method for comparing two long values.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compare(long a, long b)
    Compares the long values a and b.
  • Method Details

    • compare

      int compare(long a, long b)
      Compares the long values a and b.
      Parameters:
      a - the first value
      b - the second value
      Returns:
      0 if a equals b; a number greater than 0 if a is greater than b; a number less than 0 if a is less than b.