public class BooleanProperty extends Property
properties| Constructor and Description |
|---|
BooleanProperty(Properties properties,
String path)
Creates a Boolean property which has no default value.
|
BooleanProperty(Properties properties,
String path,
boolean defaultValue)
Creates a Boolean property.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
get()
Retrieves the value of this boolean property.
|
boolean |
get(boolean defaultValue)
Retrieves the value of this boolean property.
|
boolean |
set(boolean value)
Sets the value of this boolean property.
|
addTrigger, booleanValue, getDefaultValue, getInternal, getPath, getString, isSet, onChange, removeTrigger, setString, stringValue, toBooleanpublic BooleanProperty(Properties properties, String path, boolean defaultValue)
properties - Properties object which holds values for this property.path - Name by which this property is serialized to a properties
file, for example "com.acme.trace.Verbosity".defaultValue - Default value, null if there is no default.public BooleanProperty(Properties properties, String path)
properties - Properties object which holds values for this property.path - Name by which this property is serialized to a properties
file, for example "com.acme.trace.Verbosity".public boolean get()
Returns true if the property exists, and its value is
1, true or yes; returns
false otherwise.
public boolean get(boolean defaultValue)
Returns true if the property exists, and its value is
1, true or yes; returns
false otherwise.
public boolean set(boolean value)
Copyright © 2012–2015 Julian Hyde. All rights reserved.