public abstract class IDObject extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String name,
Object value)
Adds an optional property to this object.
|
boolean |
equals(Object obj) |
ID |
getID() |
Map<String,Object> |
getProperties() |
int |
hashCode() |
boolean |
isPersisted() |
void |
removeProperty(String name) |
void |
setPersisted(boolean persisted) |
String |
toString() |
public ID getID()
public Map<String,Object> getProperties()
public void addProperty(String name, Object value)
name - the name of the propertyvalue - the value of the property; must be JSON-serializable if not-nullpublic void removeProperty(String name)
public boolean isPersisted()
public void setPersisted(boolean persisted)
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.