public class VersionedAggregateIdentifier extends Object
| Constructor and Description |
|---|
VersionedAggregateIdentifier(String identifier,
Long version)
Initializes a VersionedAggregateIdentifier with the given
identifier and version. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
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() |
public VersionedAggregateIdentifier(String 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 irrelevantpublic String getIdentifier()
null.public Long getVersion()
null if the version is irrelevant.Copyright © 2010–2017. All rights reserved.