public class Tax
extends java.lang.Object
| Constructor and Description |
|---|
Tax(AbstractAmount amount)
Creates a new tax with a given amount.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTarget(Taxable target)
Adds a new target to this tax.
|
void |
addTargets(java.util.List<? extends Taxable> targets)
Adds multiple targets to this tax.
|
void |
addTargets(Taxable... targets)
Adds multiple targets to this tax.
|
void |
clearTargets() |
AbstractAmount |
getAmount()
Returns the amount of this tax.
|
java.util.Collection<Taxable> |
getTargets()
Returns all targets of this tax.
|
void |
removeTarget(Taxable target)
Removes a single target from this tax.
|
java.lang.String |
toString() |
public Tax(AbstractAmount amount)
public AbstractAmount getAmount()
Percentage or Money in some rare occasions.public void addTarget(Taxable target)
public void addTargets(java.util.List<? extends Taxable> targets)
public void addTargets(Taxable... targets)
public java.util.Collection<Taxable> getTargets()
public void removeTarget(Taxable target)
public void clearTargets()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 SAP SE. All Rights Reserved.