|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mycompany.expense.ReportEntry
This class represents an entry in a Report.
Field Summary | |
private double |
amount
|
private java.util.Date |
date
|
private int |
id
|
private int |
type
|
Constructor Summary | |
ReportEntry()
Creates a new, empty instance. |
|
ReportEntry(ReportEntry src)
Creates an instance that is a copy of the provided instance. |
Method Summary | |
double |
getAmount()
Returns the entry amount. |
java.util.Date |
getDate()
Returns the entry date. |
int |
getId()
Returns the entry ID. |
int |
getType()
Returns the entry type. |
void |
setAmount(double amount)
Sets the entry amount. |
void |
setDate(java.util.Date date)
Sets the entry date. |
void |
setId(int id)
Sets the entry ID. |
void |
setType(int type)
Sets the entry type. |
java.lang.String |
toString()
Returns a String with all entry properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int id
private java.util.Date date
private int type
private double amount
Constructor Detail |
public ReportEntry()
public ReportEntry(ReportEntry src)
Method Detail |
public int getId()
public void setId(int id)
public java.util.Date getDate()
public void setDate(java.util.Date date)
public int getType()
public void setType(int type)
public double getAmount()
public void setAmount(double amount)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |