@Exported public interface DataObject extends Map<String,String>
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(String name,
boolean defaultValue)
Retrieve the result as a boolean
|
Calendar |
getCalendar(String name)
Retrieve the date.
|
Date |
getDate(String name)
Retrieve the date.
|
int |
getInteger(String name)
Retrieve a value as an integer
|
void |
setBoolean(String name,
boolean value)
Set a value as a boolean
|
void |
setDate(String name,
Date date)
Set a date value.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
boolean getBoolean(String name, boolean defaultValue)
name
- the property namedefaultValue
- the default value if not foundvoid setBoolean(String name, boolean value)
name
- the property namevalue
- the property valuevoid setDate(String name, Date date)
name
- the property namedate
- the date in GMT timeDate getDate(String name)
name
- the property nameCalendar getCalendar(String name)
name
- the property nameint getInteger(String name)
name
- the property name