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