|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object employee.Week
public class Week
Field Summary | |
---|---|
static double |
FULL_TIME_HRS
full time hours |
static double |
MIN_WAGE
minimum wage in PA starting in 2007 |
Constructor Summary | |
---|---|
Week()
Creates a new default instance of Week |
|
Week(int num,
double pay)
creates a new instance of Week, given week num and pay rate |
|
Week(int num,
double pay,
double hrs)
creates a new instance of Week, given all info |
Method Summary | |
---|---|
boolean |
addHoursWorked(double hrs)
add to number of hours worked. |
double |
getHoursWorked()
report hours worked |
double |
getPayEarned()
report pay earned for the week |
double |
getPayRate()
report pay rate |
int |
getWeekNum()
report week number |
boolean |
setHoursWorked(double hrs)
set hours worked to a specific value. |
boolean |
setPayRate(double pay)
set pay rate to a specific value. |
boolean |
setWeekNum(int wk)
set week number to a specific value. |
java.lang.String |
toString()
produce a friendly string version of the object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final double MIN_WAGE
public static final double FULL_TIME_HRS
Constructor Detail |
---|
public Week()
public Week(int num, double pay)
public Week(int num, double pay, double hrs)
Method Detail |
---|
public int getWeekNum()
public double getPayRate()
public double getHoursWorked()
public double getPayEarned()
public boolean setWeekNum(int wk)
public boolean setPayRate(double pay)
public boolean setHoursWorked(double hrs)
public boolean addHoursWorked(double hrs)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |