Interface ObjectMetric<T>

  • All Superinterfaces:
    Metric
    All Known Subinterfaces:
    HistogramMetric

    public interface ObjectMetric<T>
    extends Metric
    Interface for the metrics that holds typed value.
    • Method Detail

      • value

        T value()
        Returns:
        Value ot the metric.
      • type

        Class<T> type()
        Returns:
        Type of metric value.
      • getAsString

        @Nullable
        default @Nullable String getAsString()
        Specified by:
        getAsString in interface Metric
        Returns:
        String representation of metric value.