public final class CostRateTableEntry extends Object implements Comparable<CostRateTableEntry>
| Modifier and Type | Field and Description |
|---|---|
static CostRateTableEntry |
DEFAULT_ENTRY |
static int |
MAX_RATES |
| Constructor and Description |
|---|
CostRateTableEntry(LocalDateTime startDate,
LocalDateTime endDate,
Number costPerUse,
Rate... rates)
Constructor.
|
CostRateTableEntry(LocalDateTime startDate,
LocalDateTime endDate,
Number costPerUse,
ShiftPeriod shiftPeriod,
Rate... rates)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(CostRateTableEntry o) |
Number |
getCostPerUse()
Retrieves the cost per use represented by this entry.
|
LocalDateTime |
getEndDate()
Retrieves the end date after which this table entry is not valid.
|
Rate |
getOvertimeRate()
Retrieves the overtime rate represented by this entry.
|
Rate |
getRate(int index)
Retrieve the rate with the specified index.
|
ShiftPeriod |
getShiftPeriod()
Retrieve the shift period associated with this rate.
|
Rate |
getStandardRate()
Retrieves the standard rate represented by this entry.
|
LocalDateTime |
getStartDate()
Retrieves the start date at which this table entry is valid.
|
String |
toString() |
public static final CostRateTableEntry DEFAULT_ENTRY
public static final int MAX_RATES
public CostRateTableEntry(LocalDateTime startDate, LocalDateTime endDate, Number costPerUse, Rate... rates)
startDate - start dateendDate - end datecostPerUse - cost per userates - Rate instancespublic CostRateTableEntry(LocalDateTime startDate, LocalDateTime endDate, Number costPerUse, ShiftPeriod shiftPeriod, Rate... rates)
startDate - start dateendDate - end datecostPerUse - cost per useshiftPeriod - shift periodrates - Rate instancespublic LocalDateTime getStartDate()
public LocalDateTime getEndDate()
public Rate getRate(int index)
index - rate indexpublic Rate getStandardRate()
public Rate getOvertimeRate()
public Number getCostPerUse()
public ShiftPeriod getShiftPeriod()
public int compareTo(CostRateTableEntry o)
compareTo in interface Comparable<CostRateTableEntry>Copyright © 2000–2025 MPXJ. All rights reserved.