@Test public void init_false() { MetricValue mv = MetricValue.fromBoolean(false); validateBoolean(false, mv); assertSame(MetricValue.FALSE, mv); }
public static MetricValue fromBoolean(boolean b) { return (b ? TRUE : FALSE); }
MetricValue implements Comparable<MetricValue>, Serializable { public static MetricValue fromBoolean(boolean b) { return (b ? TRUE : FALSE); } }
MetricValue implements Comparable<MetricValue>, Serializable { public static MetricValue fromBoolean(boolean b) { return (b ? TRUE : FALSE); } private  MetricValue(); }
MetricValue implements Comparable<MetricValue>, Serializable { public static MetricValue fromBoolean(boolean b) { return (b ? TRUE : FALSE); } private  MetricValue(); static MetricValue fromBoolean(boolean b); static MetricValue fromIntValue(long int_value); static MetricValue fromDblValue(double flt_value); static MetricValue fromStrValue(String str_value); static MetricValue fromHistValue(Histogram hist_value); static MetricValue fromNumberValue(Number number); @Override abstract int compareTo(MetricValue o); abstract Optional<Number> value(); abstract Optional<Boolean> asBool(); abstract Optional<String> asString(); Optional<String> stringValue(); Optional<Histogram> histogram(); Boolean getBoolValue(); Long getIntValue(); Double getFltValue(); String getStrValue(); Histogram getHistValue(); abstract String configString(); @Override String toString(); @Override abstract boolean equals(Object o); @Override abstract int hashCode(); boolean isPresent(); boolean isInfinite(); boolean isNaN(); boolean isInfiniteOrNaN(); }
MetricValue implements Comparable<MetricValue>, Serializable { public static MetricValue fromBoolean(boolean b) { return (b ? TRUE : FALSE); } private  MetricValue(); static MetricValue fromBoolean(boolean b); static MetricValue fromIntValue(long int_value); static MetricValue fromDblValue(double flt_value); static MetricValue fromStrValue(String str_value); static MetricValue fromHistValue(Histogram hist_value); static MetricValue fromNumberValue(Number number); @Override abstract int compareTo(MetricValue o); abstract Optional<Number> value(); abstract Optional<Boolean> asBool(); abstract Optional<String> asString(); Optional<String> stringValue(); Optional<Histogram> histogram(); Boolean getBoolValue(); Long getIntValue(); Double getFltValue(); String getStrValue(); Histogram getHistValue(); abstract String configString(); @Override String toString(); @Override abstract boolean equals(Object o); @Override abstract int hashCode(); boolean isPresent(); boolean isInfinite(); boolean isNaN(); boolean isInfiniteOrNaN(); static final MetricValue TRUE; static final MetricValue FALSE; static final Optional<MetricValue> OPTIONAL_TRUE; static final Optional<MetricValue> OPTIONAL_FALSE; static MetricValue EMPTY; }