Class ObjectDatumStreamMetadataId

java.lang.Object
net.solarnetwork.domain.datum.ObjectDatumStreamMetadataId
All Implemented Interfaces:
Serializable, Cloneable

public class ObjectDatumStreamMetadataId extends Object implements Cloneable, Serializable
A general datum stream metadata identifier.
Since:
1.72
Version:
1.0
Author:
matt
See Also:
  • Constructor Details

    • ObjectDatumStreamMetadataId

      public ObjectDatumStreamMetadataId(ObjectDatumKind kind, Long objectId, String sourceId)
      Constructor.
      Parameters:
      kind - the object kind
      objectId - the object ID
      sourceId - the source ID
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      Overrides:
      clone in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • isValidDatumStreamMetadataId

      public boolean isValidDatumStreamMetadataId(ObjectDatumKind expectedKind)
      Test if this ID is fully specified.
      Parameters:
      expectedKind - the kind to match
      Returns:
      true if expectedKind is the same as this object's kind and objectId, sourceId are all non-null and non-empty
    • getKind

      public ObjectDatumKind getKind()
      Get the kind.
      Returns:
      the kind
    • getObjectId

      public Long getObjectId()
      Get the object ID.
      Returns:
      the object ID
    • getSourceId

      public String getSourceId()
      Get the source ID.
      Returns:
      the source ID