Package es.bsc.dataclay.util.ids
Class ID
- java.lang.Object
-
- es.bsc.dataclay.util.ids.ID
-
- All Implemented Interfaces:
DataClaySerializable
,Serializable
- Direct Known Subclasses:
AccountID
,ContractID
,CredentialID
,DataClayInstanceID
,DataContractID
,DataSetID
,ECAID
,EventMessageID
,EventObjsMeetConditionID
,ExecutionEnvironmentID
,ImplementationID
,InterfaceID
,MetaClassID
,NamespaceID
,ObjectID
,OperationID
,PropertyID
,QualitativeRegistryID
,ResourceID
,SessionID
,StorageLocationID
public abstract class ID extends Object implements DataClaySerializable, Serializable
This class represents an identification.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ID()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deserializeIDBase(DataClayByteBuffer dcBuffer)
ID deserialize baseboolean
equals(Object t)
UUID
getId()
Get ID::idint
hashCode()
void
serializeBase(DataClayByteBuffer dcBuffer)
Serializes the current object.void
setId(UUID newid)
Set ID::idString
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface es.bsc.dataclay.serialization.DataClaySerializable
deserialize, serialize
-
-
-
-
Field Detail
-
id
public UUID id
Java universal ID.
-
-
Method Detail
-
deserializeIDBase
protected final void deserializeIDBase(DataClayByteBuffer dcBuffer)
ID deserialize base- Parameters:
dcBuffer
- Buffer with message bytes to read
-
getId
public final UUID getId()
Get ID::id- Returns:
- the id
-
setId
public final void setId(UUID newid)
Set ID::id- Parameters:
newid
- New id to set
-
serializeBase
public final void serializeBase(DataClayByteBuffer dcBuffer)
Serializes the current object. It uses the following pattern: |LONG|LONG| where: LONG is a serialized long- Parameters:
dcBuffer
- Destination buffer to store the current object
-
-