@Test public void asDouble() { ConfigProperty p = defineProperty("foo", DOUBLE, "123.0", "Foo Prop"); validate(p, "foo", DOUBLE, "123.0", "123.0"); assertEquals("incorrect value", 123.0, p.asDouble(), 0.01); }
public double asDouble() { checkState(type == Type.FLOAT || type == Type.DOUBLE, "Value is not a float or double"); return Double.parseDouble(value); }
ConfigProperty { public double asDouble() { checkState(type == Type.FLOAT || type == Type.DOUBLE, "Value is not a float or double"); return Double.parseDouble(value); } }
ConfigProperty { public double asDouble() { checkState(type == Type.FLOAT || type == Type.DOUBLE, "Value is not a float or double"); return Double.parseDouble(value); } private  ConfigProperty(String name, Type type, String description,
                           String defaultValue, String value, boolean isSet); }
ConfigProperty { public double asDouble() { checkState(type == Type.FLOAT || type == Type.DOUBLE, "Value is not a float or double"); return Double.parseDouble(value); } private  ConfigProperty(String name, Type type, String description,
                           String defaultValue, String value, boolean isSet); static ConfigProperty defineProperty(String name, Type type,
                                                String defaultValue,
                                                String description); static ConfigProperty setProperty(ConfigProperty property, String newValue); static ConfigProperty resetProperty(ConfigProperty property); String name(); Type type(); String description(); String defaultValue(); String value(); boolean isSet(); String asString(); byte asByte(); int asInteger(); long asLong(); float asFloat(); double asDouble(); boolean asBoolean(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
ConfigProperty { public double asDouble() { checkState(type == Type.FLOAT || type == Type.DOUBLE, "Value is not a float or double"); return Double.parseDouble(value); } private  ConfigProperty(String name, Type type, String description,
                           String defaultValue, String value, boolean isSet); static ConfigProperty defineProperty(String name, Type type,
                                                String defaultValue,
                                                String description); static ConfigProperty setProperty(ConfigProperty property, String newValue); static ConfigProperty resetProperty(ConfigProperty property); String name(); Type type(); String description(); String defaultValue(); String value(); boolean isSet(); String asString(); byte asByte(); int asInteger(); long asLong(); float asFloat(); double asDouble(); boolean asBoolean(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }