Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.javapowertools.taxcalculator.domain
Class TaxRate

    java.lang.Object
      com.javapowertools.taxcalculator.domain.TaxRate

    public class TaxRate

extends Object

Field Summary
`private double` | `maxiumuRevenue`
`private double` | `minimumRevenue`
`private double` | `rate`

Constructor Summary
`TaxRate(double minimumRevenue, double maxiumuRevenue, double rate)`

Method Summary
`double` | `calculateTax(double totalRevenue)`
`private double` | `getApplicableAmount(double totalRevenue)`
`double` | `getMaxiumuRevenue()`
`double` | `getMinimumRevenue()`
`double` | `getRate()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### minimumRevenue

    private double minimumRevenue

### maxiumuRevenue

    private double maxiumuRevenue

### rate

    private double rate

Constructor Detail

### TaxRate

    public TaxRate(double minimumRevenue,
                   double maxiumuRevenue,
                   double rate)

Method Detail

### getMinimumRevenue

    public double getMinimumRevenue()

### getMaxiumuRevenue

    public double getMaxiumuRevenue()

### getRate

    public double getRate()

### getApplicableAmount

    private double getApplicableAmount(double totalRevenue)

### calculateTax

    public double calculateTax(double totalRevenue)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD