| Package | Description |
|---|---|
| net.bolbat.kit.property |
Generic key/value properties.
|
| net.bolbat.kit.vo |
Common value objects.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractProperty<ValueType>
Abstract
Property. |
class |
BooleanProperty
Boolean based property. |
class |
DateProperty
Date based property. |
class |
DoubleProperty
Double based property. |
class |
FloatProperty
Float based property. |
class |
IntegerProperty
Integer based property. |
class |
ListProperty
List based property. |
class |
LongProperty
Long based property. |
class |
ShortProperty
Short based property. |
class |
StringProperty
String based property. |
| Modifier and Type | Method and Description |
|---|---|
Property<ValueType> |
Property.clone()
Clone property.
|
| Modifier and Type | Method and Description |
|---|---|
static List<Property<?>> |
ListProperty.get(Collection<Property<?>> props,
String aKey)
Get
List property value. |
static List<Property<?>> |
ListProperty.get(Collection<Property<?>> props,
String aKey,
List<Property<?>> defValue)
Get
List 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 List<Property<?>> |
ListProperty.get(Map<String,Property<?>> props,
String aKey)
Get
List property value. |
static List<Property<?>> |
ListProperty.get(Map<String,Property<?>> props,
String aKey,
List<Property<?>> defValue)
Get
List 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 List<Property<?>> |
ListProperty.get(Property<?> prop)
Get
List property value. |
static List<Property<?>> |
ListProperty.get(Property<?> prop,
List<Property<?>> defValue)
Get
List property value.Default value will be used if: - prop is null;- property value is null;- property value type differs. |
| Modifier and Type | Method and Description |
|---|---|
static <ValueType> |
AbstractProperty.get(Class<ValueType> type,
Property<?> prop)
Get property value from
Property. |
static <ValueType> |
AbstractProperty.get(Class<ValueType> type,
Property<?> prop,
ValueType defValue)
Get property value from
Property.Default value will be used if: - type is null;- prop is null;- property value is null;- property value type differs. |
static Float |
FloatProperty.get(Property<?> prop)
Get
Float property value. |
static Long |
LongProperty.get(Property<?> prop)
Get
Long property value. |
static Integer |
IntegerProperty.get(Property<?> prop)
Get
Integer property value. |
static Date |
DateProperty.get(Property<?> prop)
Get
Date property value. |
static Boolean |
BooleanProperty.get(Property<?> prop)
Get
Boolean property value. |
static Double |
DoubleProperty.get(Property<?> prop)
Get
Double property value. |
static List<Property<?>> |
ListProperty.get(Property<?> prop)
Get
List property value. |
static String |
StringProperty.get(Property<?> prop)
Get
String property value. |
static Short |
ShortProperty.get(Property<?> prop)
Get
Short property value. |
static Boolean |
BooleanProperty.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. |
static Date |
DateProperty.get(Property<?> prop,
Date defValue)
Get
Date property value.Default value will be used if: - prop is null;- property value is null;- property value type differs. |
static Double |
DoubleProperty.get(Property<?> prop,
Double defValue)
Get
Double property value.Default value will be used if: - prop is null;- property value is null;- property value type differs. |
static Float |
FloatProperty.get(Property<?> prop,
Float defValue)
Get
Float property value.Default value will be used if: - prop is null;- property value is null;- property value type differs. |
static Integer |
IntegerProperty.get(Property<?> prop,
Integer defValue)
Get
Integer property value.Default value will be used if: - prop is null;- property value is null;- property value type differs. |
static List<Property<?>> |
ListProperty.get(Property<?> prop,
List<Property<?>> defValue)
Get
List property value.Default value will be used if: - prop is null;- property value is null;- property value type differs. |
static Long |
LongProperty.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. |
static Short |
ShortProperty.get(Property<?> prop,
Short defValue)
Get
Short property value.Default value will be used if: - prop is null;- property value is null;- property value type differs. |
static String |
StringProperty.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. |
| Modifier and Type | Method and Description |
|---|---|
static <ValueType> |
AbstractProperty.get(Class<ValueType> type,
Collection<Property<?>> props,
String aKey)
Get property value from
Collection. |
static <ValueType> |
AbstractProperty.get(Class<ValueType> type,
Collection<Property<?>> props,
String aKey,
ValueType defValue)
Get property value from
Collection.Default value will be used if: - type is null;- props is null;- aKey is empty; - property not found; - property value is null;- property value type differs. |
static <ValueType> |
AbstractProperty.get(Class<ValueType> type,
Map<String,Property<?>> props,
String aKey)
Get property value from
Map.Property would be resolved by map key, property key would not be verified. |
static <ValueType> |
AbstractProperty.get(Class<ValueType> type,
Map<String,Property<?>> props,
String aKey,
ValueType defValue)
Get property value from
Map.Property would be resolved by map key, property key would not be verified. Default value will be used if: - type is null;- props is null;- aKey is empty; - property not found; - property value is null;- property value type differs. |
static Float |
FloatProperty.get(Collection<Property<?>> props,
String aKey)
Get
Float property value. |
static Long |
LongProperty.get(Collection<Property<?>> props,
String aKey)
Get
Long property value. |
static Integer |
IntegerProperty.get(Collection<Property<?>> props,
String aKey)
Get
Integer property value. |
static Date |
DateProperty.get(Collection<Property<?>> props,
String aKey)
Get
Date property value. |
static Boolean |
BooleanProperty.get(Collection<Property<?>> props,
String aKey)
Get
Boolean property value. |
static Double |
DoubleProperty.get(Collection<Property<?>> props,
String aKey)
Get
Double property value. |
static List<Property<?>> |
ListProperty.get(Collection<Property<?>> props,
String aKey)
Get
List property value. |
static String |
StringProperty.get(Collection<Property<?>> props,
String aKey)
Get
String property value. |
static Short |
ShortProperty.get(Collection<Property<?>> props,
String aKey)
Get
Short property value. |
static Boolean |
BooleanProperty.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 Date |
DateProperty.get(Collection<Property<?>> props,
String aKey,
Date defValue)
Get
Date 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 Double |
DoubleProperty.get(Collection<Property<?>> props,
String aKey,
Double defValue)
Get
Double 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 Float |
FloatProperty.get(Collection<Property<?>> props,
String aKey,
Float defValue)
Get
Float property value.Default value will be used if: - property not found; - property value is null;- property value type differs. |
static Integer |
IntegerProperty.get(Collection<Property<?>> props,
String aKey,
Integer defValue)
Get
Integer 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 List<Property<?>> |
ListProperty.get(Collection<Property<?>> props,
String aKey,
List<Property<?>> defValue)
Get
List 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 List<Property<?>> |
ListProperty.get(Collection<Property<?>> props,
String aKey,
List<Property<?>> defValue)
Get
List 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 |
LongProperty.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 Short |
ShortProperty.get(Collection<Property<?>> props,
String aKey,
Short defValue)
Get
Short 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 |
StringProperty.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 Float |
FloatProperty.get(Map<String,Property<?>> props,
String aKey)
Get
Float property value. |
static Long |
LongProperty.get(Map<String,Property<?>> props,
String aKey)
Get
Long property value. |
static Integer |
IntegerProperty.get(Map<String,Property<?>> props,
String aKey)
Get
Integer property value. |
static Date |
DateProperty.get(Map<String,Property<?>> props,
String aKey)
Get
Date property value. |
static Boolean |
BooleanProperty.get(Map<String,Property<?>> props,
String aKey)
Get
Boolean property value. |
static Double |
DoubleProperty.get(Map<String,Property<?>> props,
String aKey)
Get
Double property value. |
static List<Property<?>> |
ListProperty.get(Map<String,Property<?>> props,
String aKey)
Get
List property value. |
static String |
StringProperty.get(Map<String,Property<?>> props,
String aKey)
Get
String property value. |
static Short |
ShortProperty.get(Map<String,Property<?>> props,
String aKey)
Get
Short property value. |
static Boolean |
BooleanProperty.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 Date |
DateProperty.get(Map<String,Property<?>> props,
String aKey,
Date defValue)
Get
Date 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 Double |
DoubleProperty.get(Map<String,Property<?>> props,
String aKey,
Double defValue)
Get
Double 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 Float |
FloatProperty.get(Map<String,Property<?>> props,
String aKey,
Float defValue)
Get
Float property value.Default value will be used if: - property not found; - property value is null;- property value type differs. |
static Integer |
IntegerProperty.get(Map<String,Property<?>> props,
String aKey,
Integer defValue)
Get
Integer 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 List<Property<?>> |
ListProperty.get(Map<String,Property<?>> props,
String aKey,
List<Property<?>> defValue)
Get
List 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 List<Property<?>> |
ListProperty.get(Map<String,Property<?>> props,
String aKey,
List<Property<?>> defValue)
Get
List 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 |
LongProperty.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 Short |
ShortProperty.get(Map<String,Property<?>> props,
String aKey,
Short defValue)
Get
Short 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 |
StringProperty.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 List<Property<?>> |
ListProperty.get(Property<?> prop,
List<Property<?>> defValue)
Get
List property value.Default value will be used if: - prop is null;- property value is null;- property value type differs. |
static Properties |
Properties.resolveByPropertyClass(Class<? extends Property<?>> aPropertyClass)
Resolve property type by property class.
|
| Constructor and Description |
|---|
ListProperty(String key,
List<Property<?>> value)
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Property<?> |
AccountVO.getProperty(String propertyKey)
Get property.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Property<?>> |
AccountVO.getProperties() |
| Modifier and Type | Method and Description |
|---|---|
void |
AccountVO.addProperty(Property<?> property)
Add property.
|
Copyright © 2013–2019 BB Corp. All rights reserved.