Package org.cometd.oort
Class OortObject.Info<T>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- org.cometd.oort.OortObject.Info<T>
-
- Type Parameters:
T
- the type of the object
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
- Enclosing class:
- OortObject<T>
public static class OortObject.Info<T> extends HashMap<String,Object>
The oort object part holding the object and the metadata associated with it.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION_FIELD
static String
NAME_FIELD
static String
OBJECT_FIELD
static String
OORT_URL_FIELD
static String
PEER_FIELD
static String
TYPE_FIELD
static String
VERSION_FIELD
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
T
getObject()
String
getOortURL()
protected long
getVersion()
boolean
isLocal()
String
toString()
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode
-
-
-
-
Field Detail
-
VERSION_FIELD
public static final String VERSION_FIELD
- See Also:
- Constant Field Values
-
OORT_URL_FIELD
public static final String OORT_URL_FIELD
- See Also:
- Constant Field Values
-
NAME_FIELD
public static final String NAME_FIELD
- See Also:
- Constant Field Values
-
OBJECT_FIELD
public static final String OBJECT_FIELD
- See Also:
- Constant Field Values
-
TYPE_FIELD
public static final String TYPE_FIELD
- See Also:
- Constant Field Values
-
ACTION_FIELD
public static final String ACTION_FIELD
- See Also:
- Constant Field Values
-
PEER_FIELD
public static final String PEER_FIELD
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVersion
protected long getVersion()
-
getOortURL
public String getOortURL()
- Returns:
- the oort URL of this part
-
getName
public String getName()
- Returns:
- the name of the oort object
-
getObject
public T getObject()
- Returns:
- the object value
-
isLocal
public boolean isLocal()
- Returns:
- whether this Info is local to this node
-
toString
public String toString()
- Overrides:
toString
in classAbstractMap<String,Object>
-
-