Package org.cometd.oort
Class OortObject.Info<T>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.String,java.lang.Object>
-
- org.cometd.oort.OortObject.Info<T>
-
- Type Parameters:
T
- the type of the object
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.String,java.lang.Object>
- Enclosing class:
- OortObject<T>
public static class OortObject.Info<T> extends java.util.HashMap<java.lang.String,java.lang.Object>
The oort object part holding the object and the metadata associated with it.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACTION_FIELD
static java.lang.String
NAME_FIELD
static java.lang.String
OBJECT_FIELD
static java.lang.String
OORT_URL_FIELD
static java.lang.String
PEER_FIELD
static java.lang.String
TYPE_FIELD
static java.lang.String
VERSION_FIELD
-
Constructor Summary
Constructors Modifier Constructor Description protected
Info(java.lang.String oortURL, java.util.Map<? extends java.lang.String,?> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
T
getObject()
java.lang.String
getOortURL()
protected long
getVersion()
boolean
isLocal()
java.lang.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
-
-
-
-
Field Detail
-
VERSION_FIELD
public static final java.lang.String VERSION_FIELD
- See Also:
- Constant Field Values
-
OORT_URL_FIELD
public static final java.lang.String OORT_URL_FIELD
- See Also:
- Constant Field Values
-
NAME_FIELD
public static final java.lang.String NAME_FIELD
- See Also:
- Constant Field Values
-
OBJECT_FIELD
public static final java.lang.String OBJECT_FIELD
- See Also:
- Constant Field Values
-
TYPE_FIELD
public static final java.lang.String TYPE_FIELD
- See Also:
- Constant Field Values
-
ACTION_FIELD
public static final java.lang.String ACTION_FIELD
- See Also:
- Constant Field Values
-
PEER_FIELD
public static final java.lang.String PEER_FIELD
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVersion
protected long getVersion()
-
getOortURL
public java.lang.String getOortURL()
- Returns:
- the oort URL of this part
-
getName
public java.lang.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 java.lang.String toString()
- Overrides:
toString
in classjava.util.AbstractMap<java.lang.String,java.lang.Object>
-
-