java.lang.Object
io.github.tonywasher.joceanus.moneywise.tax.uk.MoneyWiseUKBasicAllowance
All Implemented Interfaces:
MetisDataItem.MetisDataObjectFormat, MetisFieldItem
Direct Known Subclasses:
MoneyWiseUKAgeAllowance, MoneyWiseUKSavingsAllowance

public abstract class MoneyWiseUKBasicAllowance extends Object implements MetisFieldItem
Basic UK Tax Allowance.
  • Constructor Details

    • MoneyWiseUKBasicAllowance

      protected MoneyWiseUKBasicAllowance(OceanusMoney pAllowance, OceanusMoney pRentalAllowance, OceanusMoney pCapitalAllowance, io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseMarginalReduction pReduction)
      Constructor.
      Parameters:
      pAllowance - the allowance
      pRentalAllowance - the rental allowance
      pCapitalAllowance - the capital allowance
      pReduction - the marginal reduction
    • MoneyWiseUKBasicAllowance

      protected MoneyWiseUKBasicAllowance(OceanusMoney pAllowance, OceanusMoney pRentalAllowance, OceanusMoney pCapitalAllowance)
      Constructor.
      Parameters:
      pAllowance - the allowance
      pRentalAllowance - the rental allowance
      pCapitalAllowance - the capital allowance
  • Method Details

    • getAllowance

      protected OceanusMoney getAllowance()
      Obtain the allowance.
      Returns:
      the Allowance
    • getRentalAllowance

      protected OceanusMoney getRentalAllowance()
      Obtain the rental allowance.
      Returns:
      the Allowance
    • getCapitalAllowance

      protected OceanusMoney getCapitalAllowance()
      Obtain the capital allowance.
      Returns:
      the Allowance
    • getMarginalReduction

      protected io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseMarginalReduction getMarginalReduction()
      Obtain the marginal reduction.
      Returns:
      the Reduction
    • calculateBasicAllowance

      protected OceanusMoney calculateBasicAllowance(MoneyWiseUKTaxConfig pConfig)
      Calculate the allowance.
      Parameters:
      pConfig - the tax configuration
      Returns:
      the calculated allowance
    • calculateSavingsAllowance

      protected OceanusMoney calculateSavingsAllowance(MoneyWiseUKTaxConfig pConfig)
      Calculate the savings allowance.
      Parameters:
      pConfig - the tax configuration
      Returns:
      the savings allowance
    • calculateDividendAllowance

      protected OceanusMoney calculateDividendAllowance()
      Calculate the dividend allowance.
      Returns:
      the dividend allowance
    • calculateLoSavingsBand

      protected io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxBandSet.MoneyWiseTaxBand calculateLoSavingsBand(MoneyWiseUKTaxConfig pConfig, io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxBandSet.MoneyWiseTaxBand pLoSavings)
      Calculate the loSavings band.
      Parameters:
      pConfig - the tax configuration
      pLoSavings - the low savings band
      Returns:
      the loSavings band
    • getZeroAmount

      protected OceanusMoney getZeroAmount()
      Obtain zero amount.
      Returns:
      the zero amount
    • getBaseFieldSet

      protected static MetisFieldSet<? extends MoneyWiseUKBasicAllowance> getBaseFieldSet()
      Obtain the data fields.
      Returns:
      the data fields