Advertisement
spiny94

Untitled

Sep 11th, 2015
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.14 KB | None | 0 0
  1. package BankServices;
  2.  
  3.  
  4. import java.util.LinkedList;
  5. import java.util.List;
  6.  
  7. public class Account {
  8.     List<Deposit> deposits = new LinkedList<>();
  9.     List<Withdrawal> withdrawals = new LinkedList<>(); 
  10.     List<Operation> operations =  new LinkedList<>();
  11.     private String name;
  12.     private int code;  
  13.     private int date;
  14.         private double initial;
  15.         private double value;
  16.         public Account(String name, int date, double initial){
  17.             this.name=name;
  18.             this.date=date;
  19.             this.initial=initial;
  20.            
  21.         }
  22.     public String toString() {
  23.         return  code+","+name+"," + date + ","+ value;
  24.     }
  25.    
  26.    
  27.    
  28.     public List<Operation> getMovements() {
  29.         return operations;
  30.     }
  31.    
  32.     public List<Deposit> getDeposits() {
  33.        
  34.        
  35.         return deposits;
  36.     }
  37.  
  38.     public List<Withdrawal> getWithdrawals() {
  39.         return withdrawals;
  40.     }
  41.    
  42.     public double getInitial() {
  43.         // TODO Auto-generated method stub
  44.         return initial;
  45.     }
  46.     public double getValue() {
  47.         // TODO Auto-generated method stub
  48.         return value;
  49.     }
  50.     public void addValue(double v) {
  51.         // TODO Auto-generated method stub
  52.        
  53.     }
  54.     public int getDate() {
  55.         // TODO Auto-generated method stub
  56.         return date;
  57.     }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement