Package ejava.examples.ejbsessionbank.bo
Class Ledger
- java.lang.Object
-
- ejava.examples.ejbsessionbank.bo.Ledger
-
- All Implemented Interfaces:
Serializable
public class Ledger extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private double
aveAssets
private long
numberOfAccounts
private static long
serialVersionUID
private double
totalAssets
-
Constructor Summary
Constructors Constructor Description Ledger(long numberOfAccounts, double totalAssets, double aveAssets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAverageAssets()
long
getNumberOfAccounts()
double
getTotalAssets()
private void
setAverageAssets(double aveAssets)
private void
setNumberOfAccounts(long numberOfAccounts)
private void
setTotalAssets(double totalAssets)
String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
numberOfAccounts
private long numberOfAccounts
-
totalAssets
private double totalAssets
-
aveAssets
private double aveAssets
-
-
Method Detail
-
getAverageAssets
public double getAverageAssets()
-
setAverageAssets
private void setAverageAssets(double aveAssets)
-
getNumberOfAccounts
public long getNumberOfAccounts()
-
setNumberOfAccounts
private void setNumberOfAccounts(long numberOfAccounts)
-
getTotalAssets
public double getTotalAssets()
-
setTotalAssets
private void setTotalAssets(double totalAssets)
-
-