Package org.opensearch.common.round
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.
Interface to round-off values.
- Opensearch.internal:
-
Method Summary
Modifier and TypeMethodDescriptionlongfloor(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 thatvalue <= key.- Parameters:
key- to floor- Returns:
- the floored value
-