Class Metric$

  • All Implemented Interfaces:
    MetricNumericConverter, java.io.Serializable

    public class Metric$
    extends java.lang.Object
    implements MetricNumericConverter, java.io.Serializable
    Creates a new Metric instance if the value is valid, otherwise None is returned. Invalid numeric values are negative and NaN/Infinite.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Metric$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      Metric$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Metric apply​(java.lang.String name, java.lang.Number value, scala.Option<EWMA> average)  
      scala.Option<Metric> create​(java.lang.String name, java.lang.Number value, scala.Option<java.lang.Object> decayFactor)  
      scala.Option<Metric> create​(java.lang.String name, scala.util.Try<java.lang.Number> value, scala.Option<java.lang.Object> decayFactor)
      Creates a new Metric instance if the Try is successful and the value is valid, otherwise None is returned.
      scala.Option<EWMA> createEWMA​(double value, scala.Option<java.lang.Object> decayFactor)  
      scala.Option<scala.Tuple3<java.lang.String,​java.lang.Number,​scala.Option<EWMA>>> unapply​(Metric x$0)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final Metric$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • Metric$

        public Metric$()
    • Method Detail

      • create

        public scala.Option<Metric> create​(java.lang.String name,
                                           java.lang.Number value,
                                           scala.Option<java.lang.Object> decayFactor)
      • create

        public scala.Option<Metric> create​(java.lang.String name,
                                           scala.util.Try<java.lang.Number> value,
                                           scala.Option<java.lang.Object> decayFactor)
        Creates a new Metric instance if the Try is successful and the value is valid, otherwise None is returned. Invalid numeric values are negative and NaN/Infinite.
        Parameters:
        name - (undocumented)
        value - (undocumented)
        decayFactor - (undocumented)
        Returns:
        (undocumented)
      • createEWMA

        public scala.Option<EWMA> createEWMA​(double value,
                                             scala.Option<java.lang.Object> decayFactor)
      • apply

        public Metric apply​(java.lang.String name,
                            java.lang.Number value,
                            scala.Option<EWMA> average)
      • unapply

        public scala.Option<scala.Tuple3<java.lang.String,​java.lang.Number,​scala.Option<EWMA>>> unapply​(Metric x$0)