Class PSRegion.TaxPayment

java.lang.Object
dev.espi.protectionstones.PSRegion.TaxPayment
All Implemented Interfaces:
Comparable<PSRegion.TaxPayment>
Enclosing class:
PSRegion

public static class PSRegion.TaxPayment extends Object implements Comparable<PSRegion.TaxPayment>
  • Constructor Details

    • TaxPayment

      public TaxPayment(long whenPaymentIsDue, double amount, String regionId)
  • Method Details

    • fromString

      public static PSRegion.TaxPayment fromString(String s)
      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

      public String toFlagEntry()
      Converts the tax payment object into its flag representation.
      Returns:
      the flag representation of this object
    • compareTo

      public int compareTo(PSRegion.TaxPayment t)
      Specified by:
      compareTo in interface Comparable<PSRegion.TaxPayment>
    • getWhenPaymentIsDue

      public long getWhenPaymentIsDue()
    • getAmount

      public double getAmount()
    • getRegionId

      public String getRegionId()
    • setWhenPaymentIsDue

      public void setWhenPaymentIsDue(long whenPaymentIsDue)
    • setAmount

      public void setAmount(double amount)
    • setRegionId

      public void setRegionId(String regionId)