public class BooleanProperty extends AbstractProperty<Boolean>
Boolean based property.| Constructor and Description |
|---|
BooleanProperty()
Default constructor.
|
BooleanProperty(String key,
Boolean value)
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Boolean |
get(Collection<Property<?>> props,
String aKey)
Get
Boolean property value. |
static Boolean |
get(Collection<Property<?>> props,
String aKey,
Boolean defValue)
Get
Boolean property value.Default value will be used if: - props is null;- aKey is empty; - property not found; - property value is null;- property value type differs. |
static Boolean |
get(Map<String,Property<?>> props,
String aKey)
Get
Boolean property value. |
static Boolean |
get(Map<String,Property<?>> props,
String aKey,
Boolean defValue)
Get
Boolean property value.Default value will be used if: - props is null;- aKey is empty; - property not found; - property value is null;- property value type differs. |
static Boolean |
get(Property<?> prop)
Get
Boolean property value. |
static Boolean |
get(Property<?> prop,
Boolean defValue)
Get
Boolean property value.Default value will be used if: - prop is null;- property value is null;- property value type differs. |
public static Boolean get(Collection<Property<?>> props, String aKey)
Boolean property value.props - properties collectionaKey - property keynullpublic static Boolean get(Collection<Property<?>> props, String aKey, Boolean defValue)
Boolean property value.null;null;props - properties collectionaKey - property keydefValue - default property valuenullpublic static Boolean get(Map<String,Property<?>> props, String aKey)
Boolean property value.props - properties mapaKey - property keynullpublic static Boolean get(Map<String,Property<?>> props, String aKey, Boolean defValue)
Boolean property value.null;null;props - properties mapaKey - property keydefValue - default property valuenullpublic static Boolean get(Property<?> prop)
Boolean property value.prop - propertynullCopyright © 2013–2019 BB Corp. All rights reserved.