Class AggregateStreamId

java.lang.Object
org.fuin.ddd4j.esrepo.AggregateStreamId
All Implemented Interfaces:
Serializable, org.fuin.esc.api.StreamId

@Immutable public final class AggregateStreamId extends Object implements org.fuin.esc.api.StreamId
Unique name of an aggregate stream. Equals and has code are based on the asString() method.
See Also:
  • Constructor Details

    • AggregateStreamId

      public AggregateStreamId(EntityType type, String paramName, AggregateRootId paramValue)
      Constructor with type and id.
      Parameters:
      type - Aggregate type.
      paramName - Parameter name.
      paramValue - Aggregate id.
  • Method Details

    • getName

      public final String getName()
      Specified by:
      getName in interface org.fuin.esc.api.StreamId
    • isProjection

      public final boolean isProjection()
      Specified by:
      isProjection in interface org.fuin.esc.api.StreamId
    • getSingleParamValue

      public final <T> T getSingleParamValue()
      Specified by:
      getSingleParamValue in interface org.fuin.esc.api.StreamId
    • getParameters

      public final List<org.fuin.objects4j.vo.KeyValue> getParameters()
      Specified by:
      getParameters in interface org.fuin.esc.api.StreamId
    • asString

      public final String asString()
      Specified by:
      asString in interface org.fuin.esc.api.StreamId
    • hashCode

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

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

      public final String toString()
      Overrides:
      toString in class Object