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