public class Metric$ extends java.lang.Object implements MetricNumericConverter, scala.Serializable
Modifier and Type | Field and Description |
---|---|
static Metric$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Metric$() |
Modifier and Type | Method and Description |
---|---|
scala.Option<Metric> |
create(java.lang.String name,
java.lang.Number value,
scala.Option<java.lang.Object> decayFactor)
Creates a new Metric instance if the value is valid, otherwise None
is returned.
|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertNumber, defined
public static final Metric$ MODULE$
public scala.Option<Metric> create(java.lang.String name, java.lang.Number value, scala.Option<java.lang.Object> decayFactor)
name
- (undocumented)value
- (undocumented)decayFactor
- (undocumented)public scala.Option<Metric> create(java.lang.String name, scala.util.Try<java.lang.Number> value, scala.Option<java.lang.Object> decayFactor)
name
- (undocumented)value
- (undocumented)decayFactor
- (undocumented)public scala.Option<EWMA> createEWMA(double value, scala.Option<java.lang.Object> decayFactor)