public abstract class AbstractAggregateIdentifier extends Object implements AggregateIdentifier, Comparable<AggregateIdentifier>
AggregateIdentifier
.
This implementation contains an implementation of the compareTo(AggregateIdentifier)
, equals(Object)
, hashCode()
and toString()
methods.
The compareTo(AggregateIdentifier)
methods returns the result of the comparison of both identifier's string
representations. For numerical values, this may not be a suitable comparison. For example, 3 would be evaluated as
being larger than 10, when compared as Strings.Constructor and Description |
---|
AbstractAggregateIdentifier() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AggregateIdentifier other)
This implementation compared the string representations of both identifiers.
|
boolean |
equals(Object o) |
int |
hashCode()
This implementation returns the hashCode of the string representation of the identifier.
|
String |
toString()
This implementation returns the result of
AggregateIdentifier.asString() . |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asString
public String toString()
AggregateIdentifier.asString()
.public int hashCode()
public int compareTo(AggregateIdentifier other)
compareTo
in interface Comparable<AggregateIdentifier>
public boolean equals(Object o)
AggregateIdentifier
equals
in interface AggregateIdentifier
equals
in class Object
Copyright © 2012. All Rights Reserved.