Package io.opencensus.common
Interface ToLongFunction<T>
-
- All Known Implementing Classes:
SpanExporterImpl.ReportDroppedSpans,SpanExporterImpl.ReportPushedSpans,SpanExporterImpl.ReportReferencedSpans
public interface ToLongFunction<T>Represents a function that produces a long-valued result. SeeMetricRegistryfor 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.
- Since:
- 0.16
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longapplyAsLong(T value)Applies this function to the given argument.
-
-
-
Method Detail
-
applyAsLong
long applyAsLong(T value)
Applies this function to the given argument.- Parameters:
value- the function argument.- Returns:
- the function result.
-
-