@Test public void asBoolean() { ConfigProperty p = defineProperty("foo", BOOLEAN, "true", "Foo Prop"); validate(p, "foo", BOOLEAN, "true", "true"); assertEquals("incorrect value", true, p.asBoolean()); }
public boolean asBoolean() { checkState(type == Type.BOOLEAN, "Value is not a boolean"); return Boolean.parseBoolean(value); }
ConfigProperty { public boolean asBoolean() { checkState(type == Type.BOOLEAN, "Value is not a boolean"); return Boolean.parseBoolean(value); } }
ConfigProperty { public boolean asBoolean() { checkState(type == Type.BOOLEAN, "Value is not a boolean"); return Boolean.parseBoolean(value); } private  ConfigProperty(String name, Type type, String description,
                           String defaultValue, String value, boolean isSet); }
ConfigProperty { public boolean asBoolean() { checkState(type == Type.BOOLEAN, "Value is not a boolean"); return Boolean.parseBoolean(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 boolean asBoolean() { checkState(type == Type.BOOLEAN, "Value is not a boolean"); return Boolean.parseBoolean(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();  }