Package org.fuin.ddd4j.esrepo
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 theasString()method.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AggregateStreamId(EntityType type, String paramName, AggregateRootId paramValue)Constructor with type and id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasString()booleanequals(Object obj)StringgetName()List<org.fuin.objects4j.vo.KeyValue>getParameters()<T> TgetSingleParamValue()inthashCode()booleanisProjection()StringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
getName
public final String getName()
- Specified by:
getNamein interfaceorg.fuin.esc.api.StreamId
-
isProjection
public final boolean isProjection()
- Specified by:
isProjectionin interfaceorg.fuin.esc.api.StreamId
-
getSingleParamValue
public final <T> T getSingleParamValue()
- Specified by:
getSingleParamValuein interfaceorg.fuin.esc.api.StreamId
-
getParameters
public final List<org.fuin.objects4j.vo.KeyValue> getParameters()
- Specified by:
getParametersin interfaceorg.fuin.esc.api.StreamId
-
asString
public final String asString()
- Specified by:
asStringin interfaceorg.fuin.esc.api.StreamId
-
-