Interface Roundable

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

@InternalApi @FunctionalInterface public interface Roundable
Interface to round-off values.
Opensearch.internal:
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    floor(long key)
    Returns the greatest lower bound of the given key.
  • Method Details

    • floor

      long floor(long key)
      Returns the greatest lower bound of the given key. In other words, it returns the largest value such that value <= key.
      Parameters:
      key - to floor
      Returns:
      the floored value