|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.commandhandling.VersionedAggregateIdentifier
public class VersionedAggregateIdentifier
Structure that holds an Aggregate Identifier and an expected version of an aggregate.
Constructor Summary | |
---|---|
VersionedAggregateIdentifier(Object identifier,
Long version)
Initializes a VersionedAggregateIdentifier with the given identifier and version . |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Object |
getIdentifier()
Returns the identifier of the targeted Aggregate. |
Long |
getVersion()
Returns the version of the targeted Aggregate, or null if the version is irrelevant. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VersionedAggregateIdentifier(Object identifier, Long version)
identifier
and version
.
identifier
- The identifier of the targeted aggregateversion
- The expected version of the targeted aggregate, or null
if the version is irrelevantMethod Detail |
---|
public Object getIdentifier()
null
.
public Long getVersion()
null
if the version is irrelevant.
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |