public class PersistentItem extends HashMap<String,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
static String |
BINARY_SUFFIX |
static String |
DATE_SUFFIX |
static String |
ID |
static String |
INT_SUFFIX |
static String |
LONG_SUFFIX |
static String |
TEXT_SUFFIX |
static String |
XML_SUFFIX |
Constructor and Description |
---|
PersistentItem() |
Modifier and Type | Method and Description |
---|---|
void |
addIdProperty(Object value) |
void |
addProperty(String name,
byte[] value) |
void |
addProperty(String name,
Date value) |
void |
addProperty(String name,
int value) |
void |
addProperty(String name,
long value) |
void |
addProperty(String name,
Object value) |
void |
addProperty(String name,
Set<String> value) |
void |
addProperty(String name,
String value) |
void |
addProperty(String name,
String suffix,
Object value) |
void |
addXmlProperty(String name,
String value) |
String |
getBinaryProperty(String name) |
Date |
getDateProperty(String name) |
String |
getIdProperty() |
Integer |
getIntProperty(String name) |
Long |
getLongProperty(String name) |
Object |
getProperty(String name) |
Set<String> |
getPropertyNames() |
String |
getTextProperty(String name) |
Set<String> |
getTextSetProperty(String name) |
String |
getXmlProperty(String name) |
static Map<String,Object> |
stripSuffixes(Map<String,Object> inMap) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public static final String ID
public static final String TEXT_SUFFIX
public static final String XML_SUFFIX
public static final String INT_SUFFIX
public static final String LONG_SUFFIX
public static final String DATE_SUFFIX
public static final String BINARY_SUFFIX
This work is licensed under a Creative Commons Attribution 4.0 International License.