Class Entry
- java.lang.Object
-
- de.japrost.jabudget.domain.account.AggregateMember
-
- de.japrost.jabudget.domain.account.Entry
-
- All Implemented Interfaces:
java.io.Serializable
public class Entry extends AggregateMember implements java.io.Serializable
An entry in anAccount
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.japrost.jabudget.domain.account.AggregateMember
KEY_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description Entry(java.lang.String accountId, java.lang.String code, java.lang.String subject)
Create an Entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAccountId()
Gets the identity of the Account the Entry resides in.java.lang.String
getCode()
Gets the code of the entry.java.lang.String
getSubject()
Gets the subject of the entry.java.lang.String
key()
Get the key of theAggregateMember
.java.lang.String
toString()
-
Methods inherited from class de.japrost.jabudget.domain.account.AggregateMember
equals, hashCode
-
-
-
-
Method Detail
-
getAccountId
public java.lang.String getAccountId()
Gets the identity of the Account the Entry resides in.- Returns:
- the identity of the Account the Entry resides in
-
getCode
public java.lang.String getCode()
Gets the code of the entry.- Returns:
- the code of the entry
-
getSubject
public java.lang.String getSubject()
Gets the subject of the entry.- Returns:
- the subject of the entry
-
key
public java.lang.String key()
Get the key of theAggregateMember
.This implementation concats accountId and code.
- Specified by:
key
in classAggregateMember
- Returns:
- the key, composed with the KEY_SEPARATOR.
-
toString
public java.lang.String toString()
This implementation show all fields.
- Overrides:
toString
in classjava.lang.Object
-
-