Package net.solarnetwork.domain.datum
Class ObjectDatumStreamMetadataId
java.lang.Object
net.solarnetwork.domain.datum.ObjectDatumStreamMetadataId
- All Implemented Interfaces:
Serializable,Cloneable
A general datum stream metadata identifier.
- Since:
- 1.72
- Version:
- 1.0
- Author:
- matt
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionObjectDatumStreamMetadataId(ObjectDatumKind kind, Long objectId, String sourceId) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetKind()Get the kind.Get the object ID.Get the source ID.inthashCode()booleanisValidDatumStreamMetadataId(ObjectDatumKind expectedKind) Test if this ID is fully specified.toString()
-
Constructor Details
-
ObjectDatumStreamMetadataId
Constructor.- Parameters:
kind- the object kindobjectId- the object IDsourceId- the source ID
-
-
Method Details
-
toString
-
clone
-
hashCode
public int hashCode() -
equals
-
isValidDatumStreamMetadataId
Test if this ID is fully specified.- Parameters:
expectedKind- the kind to match- Returns:
- true if
expectedKindis the same as this object'skindandobjectId,sourceIdare all non-null and non-empty
-
getKind
Get the kind.- Returns:
- the kind
-
getObjectId
Get the object ID.- Returns:
- the object ID
-
getSourceId
Get the source ID.- Returns:
- the source ID
-