-
-
Save tshevchuk/4f855f96f9bc31c529733e0b7fa4a1ee to your computer and use it in GitHub Desktop.
Transaction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* Created by taras on 14.01.17. | |
*/ | |
public class Transaction { | |
private String account; | |
private String date; | |
private String description; | |
private final List<SubTransaction> subTransactions = new ArrayList<>(); | |
public String getAccount() { | |
return account; | |
} | |
public void setAccount(String account) { | |
this.account = account; | |
} | |
public String getDate() { | |
return date; | |
} | |
public void setDate(String date) { | |
this.date = date; | |
} | |
public String getDescription() { | |
return description; | |
} | |
public void setDescription(String description) { | |
this.description = description; | |
} | |
public List<SubTransaction> getSubTransactions() { | |
return subTransactions; | |
} | |
@Override | |
public String toString() { | |
return "Transaction{" + | |
"account='" + account + '\'' + | |
", date='" + date + '\'' + | |
", description='" + description + '\'' + | |
", subTransactions=" + subTransactions + | |
'}'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment