Class AggregateMember
- java.lang.Object
-
- de.japrost.jabudget.domain.account.AggregateMember
-
- Direct Known Subclasses:
Entry
public abstract class AggregateMember extends java.lang.Object
A member of an aggregate. Has a key as unique identifier.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
KEY_SEPARATOR
Separator between parts of a key
-
Constructor Summary
Constructors Constructor Description AggregateMember()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
This implementation uses thekey()
.int
hashCode()
This implementation uses thekey()
.abstract java.lang.String
key()
Get the key of theAggregateMember
.
-
-
-
Field Detail
-
KEY_SEPARATOR
public static final java.lang.String KEY_SEPARATOR
Separator between parts of a key- See Also:
- Constant Field Values
-
-
Method Detail
-
key
public abstract java.lang.String key()
Get the key of theAggregateMember
.- Returns:
- the key, composed with the KEY_SEPARATOR.
-
hashCode
public int hashCode()
This implementation uses thekey()
.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
This implementation uses thekey()
.- Overrides:
equals
in classjava.lang.Object
-
-