Class MoneyWiseUKBasicAllowance
java.lang.Object
io.github.tonywasher.joceanus.moneywise.tax.uk.MoneyWiseUKBasicAllowance
- All Implemented Interfaces:
MetisDataItem.MetisDataObjectFormat,MetisFieldItem
- Direct Known Subclasses:
MoneyWiseUKAgeAllowance,MoneyWiseUKSavingsAllowance
Basic UK Tax Allowance.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldItem
MetisFieldItem.MetisFieldDef, MetisFieldItem.MetisFieldItemType, MetisFieldItem.MetisFieldSetDef, MetisFieldItem.MetisFieldTableItem, MetisFieldItem.MetisFieldUpdatableItem, MetisFieldItem.MetisFieldVersionedDef -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMoneyWiseUKBasicAllowance(OceanusMoney pAllowance, OceanusMoney pRentalAllowance, OceanusMoney pCapitalAllowance) Constructor.protectedMoneyWiseUKBasicAllowance(OceanusMoney pAllowance, OceanusMoney pRentalAllowance, OceanusMoney pCapitalAllowance, io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseMarginalReduction pReduction) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected OceanusMoneyCalculate the allowance.protected OceanusMoneyCalculate the dividend allowance.protected io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxBandSet.MoneyWiseTaxBandcalculateLoSavingsBand(MoneyWiseUKTaxConfig pConfig, io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseTaxBandSet.MoneyWiseTaxBand pLoSavings) Calculate the loSavings band.protected OceanusMoneyCalculate the savings allowance.protected OceanusMoneyObtain the allowance.protected static MetisFieldSet<? extends MoneyWiseUKBasicAllowance> Obtain the data fields.protected OceanusMoneyObtain the capital allowance.protected io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseMarginalReductionObtain the marginal reduction.protected OceanusMoneyObtain the rental allowance.protected OceanusMoneyObtain zero amount.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.tonywasher.joceanus.metis.data.MetisDataItem.MetisDataObjectFormat
formatObjectMethods inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldItem
getDataFieldSet
-
Constructor Details
-
MoneyWiseUKBasicAllowance
protected MoneyWiseUKBasicAllowance(OceanusMoney pAllowance, OceanusMoney pRentalAllowance, OceanusMoney pCapitalAllowance, io.github.tonywasher.joceanus.moneywise.tax.MoneyWiseMarginalReduction pReduction) Constructor.- Parameters:
pAllowance- the allowancepRentalAllowance- the rental allowancepCapitalAllowance- the capital allowancepReduction- the marginal reduction
-
MoneyWiseUKBasicAllowance
protected MoneyWiseUKBasicAllowance(OceanusMoney pAllowance, OceanusMoney pRentalAllowance, OceanusMoney pCapitalAllowance) Constructor.- Parameters:
pAllowance- the allowancepRentalAllowance- the rental allowancepCapitalAllowance- the capital allowance
-
-
Method Details
-
getAllowance
Obtain the allowance.- Returns:
- the Allowance
-
getRentalAllowance
Obtain the rental allowance.- Returns:
- the Allowance
-
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
Calculate the allowance.- Parameters:
pConfig- the tax configuration- Returns:
- the calculated allowance
-
calculateSavingsAllowance
Calculate the savings allowance.- Parameters:
pConfig- the tax configuration- Returns:
- the savings allowance
-
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 configurationpLoSavings- the low savings band- Returns:
- the loSavings band
-
getZeroAmount
Obtain zero amount.- Returns:
- the zero amount
-
getBaseFieldSet
Obtain the data fields.- Returns:
- the data fields
-