Interface ComparatorInt

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ComparatorInt
Compares two primitive int values without boxing.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compare(int a, int b)
    Compares two primitive ints.
  • Method Details

    • compare

      int compare(int a, int b)
      Compares two primitive ints.
      Parameters:
      a - first value
      b - second value
      Returns:
      comparison result