Interface ContainerUtil.TargetComparator

Enclosing class:
ContainerUtil
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 static interface ContainerUtil.TargetComparator
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    directionFrom(int value)
    Compare the underlying target to the provided value.
  • Method Details

    • directionFrom

      int directionFrom(int value)
      Compare the underlying target to the provided value. Return -1, 0, or 1 if target is less than, equal, or greater than the provided value, respectively.
      Parameters:
      value -
      Returns:
      -1 if target is to the left of value (target < value ); 0 if value == target; +1 if target is to the right of value (value < target).