Class AggregateStreamId

java.lang.Object
org.fuin.ddd4j.esc.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(org.fuin.ddd4j.core.EntityType type, String paramName, org.fuin.ddd4j.core.AggregateRootId paramValue)
      Constructor with type and id.
      Parameters:
      type - Aggregate type.
      paramName - Parameter name.
      paramValue - Aggregate id.
  • Method Details

    • getName

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

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

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

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object