- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 31 of file AccountItem.java.
◆ AccountItem() [1/2]
org.turro.financials.model.register.AccountItem.AccountItem |
( |
RegisterView |
view, |
|
|
Account |
account, |
|
|
double |
balance |
|
) |
| |
◆ AccountItem() [2/2]
org.turro.financials.model.register.AccountItem.AccountItem |
( |
long |
idView, |
|
|
String |
idAccount, |
|
|
double |
balance |
|
) |
| |
Definition at line 50 of file AccountItem.java.
51 Dao dao =
new FinancialsPU();
52 this.
view = dao.find(RegisterView.class, idView);
53 this.
account = dao.find(Account.class, idAccount);
◆ compareTo()
int org.turro.financials.model.register.AccountItem.compareTo |
( |
AccountItem |
o | ) |
|
Definition at line 88 of file AccountItem.java.
89 int result = CompareUtil.compare(
view.
getId(), o.view.getId());
91 result = CompareUtil.compare(
account.
getId(), o.account.getId());
94 result = CompareUtil.compare(
balance, o.balance);
◆ createAccountItem()
Definition at line 37 of file AccountItem.java.
AccountItem(RegisterView view, Account account, double balance)
◆ equals()
boolean org.turro.financials.model.register.AccountItem.equals |
( |
Object |
obj | ) |
|
Definition at line 58 of file AccountItem.java.
62 if (getClass() != obj.getClass()) {
66 if (this.
view != other.view && (
this.view ==
null || !
this.view.equals(other.view))) {
69 if (this.
account != other.account && (
this.account ==
null || !
this.account.equals(other.account))) {
72 if (Double.doubleToLongBits(
this.balance) != Double.doubleToLongBits(other.balance)) {
◆ hashCode()
int org.turro.financials.model.register.AccountItem.hashCode |
( |
| ) |
|
Definition at line 79 of file AccountItem.java.
81 hash = 19 * hash + (this.
view !=
null ? this.
view.hashCode() : 0);
82 hash = 19 * hash + (this.
account !=
null ? this.
account.hashCode() : 0);
83 hash = 19 * hash + (int) (Double.doubleToLongBits(
this.balance) ^ (Double.doubleToLongBits(this.
balance) >>> 32));
◆ account
Account org.turro.financials.model.register.AccountItem.account |
◆ balance
double org.turro.financials.model.register.AccountItem.balance |
◆ view
RegisterView org.turro.financials.model.register.AccountItem.view |
The documentation for this class was generated from the following file: