Package dev.espi.protectionstones
Class PSRegion.TaxPayment
java.lang.Object
dev.espi.protectionstones.PSRegion.TaxPayment
- All Implemented Interfaces:
Comparable<PSRegion.TaxPayment>
- Enclosing class:
- PSRegion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
static PSRegion.TaxPayment
fromString(String s)
Convert a flag entry to a tax payment object.double
long
void
setAmount(double amount)
void
setRegionId(String regionId)
void
setWhenPaymentIsDue(long whenPaymentIsDue)
Converts the tax payment object into its flag representation.
-
Constructor Details
-
TaxPayment
-
-
Method Details
-
fromString
Convert a flag entry to a tax payment object. The flag entry is in the form "timestamp amount regionId".- Parameters:
s
- the flag value- Returns:
- the tax payment object, or null if the string was invalid
-
toFlagEntry
Converts the tax payment object into its flag representation.- Returns:
- the flag representation of this object
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PSRegion.TaxPayment>
-
getWhenPaymentIsDue
public long getWhenPaymentIsDue() -
getAmount
public double getAmount() -
getRegionId
-
setWhenPaymentIsDue
public void setWhenPaymentIsDue(long whenPaymentIsDue) -
setAmount
public void setAmount(double amount) -
setRegionId
-