public interface ToLongFunction<T>
MetricRegistry
for an example of its use.
Note: This class is based on the java.util.ToLongFunction class added in Java 1.8. We cannot use the Function from Java 1.8 because this library is Java 1.6 compatible.
Modifier and Type | Method and Description |
---|---|
long |
applyAsLong(T value)
Applies this function to the given argument.
|
long applyAsLong(T value)
value
- the function argument.