org.axonframework.domain
Interface AggregateIdentifier

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractAggregateIdentifier, StringAggregateIdentifier, UUIDAggregateIdentifier

public interface AggregateIdentifier
extends Serializable

Interface to the type that uniquely identifies an aggregate of a certain type.

Two identifiers are considered equals when their internal (backing) values are equal, regardles of the actual implementation type.

Implementation guidelines:
Each identifier should have a non-null String representation. Implementations are REQUIRED to return this representation in the asString() method. They MAY also return this representation in the toString() method.
When two identifiers are compared they are equal if their String representation is equal.

Since:
0.7
Author:
Allard Buijze

Method Summary
 String asString()
          Returns the String representation of this aggregate identifier.
 boolean equals(Object o)
          
 

Method Detail

asString

String asString()
Returns the String representation of this aggregate identifier. May never return null.

Returns:
the non-null String representation of this aggregate identifier.

equals

boolean equals(Object o)

Overrides:
equals in class Object


Copyright © 2011. All Rights Reserved.