|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.component.shop.checkout.TotalPrice.Quota
@Entity(name="checkout_Quota") public static class TotalPrice.Quota
The Quota.
| Constructor Summary | |
|---|---|
protected |
TotalPrice.Quota()
Deprecated. |
|
TotalPrice.Quota(TaxRate tr,
java.math.BigDecimal a)
Creates a new Quota from the given TaxRate and
amount. |
|
TotalPrice.Quota(TotalPrice.Quota q)
The copy constructor. |
| Method Summary | |
|---|---|
TotalPrice.Quota |
add(TotalPrice.Quota q)
Returns a new Quota that is the sum of this
Quota and the given Quota. |
int |
compareTo(TotalPrice.Quota q)
Compares this Quota with the given Quota for
order. |
TotalPrice.Quota |
divide(java.math.BigDecimal d)
Returns a new Quota that is the result of the division of
this Quota and the given divisor. |
boolean |
equals(java.lang.Object o)
Determines whether the given Object is equal to this
Quota. |
java.math.BigDecimal |
getAmount()
Returns the amount. |
TaxRate |
getTaxRate()
Returns the TaxRate. |
int |
hashCode()
Returns the hash code for this Quota. |
TotalPrice.Quota |
multiply(java.math.BigDecimal m)
Returns a new Quota that is the product of this
Quota and the given multiplicand. |
TotalPrice.Quota |
subtract(TotalPrice.Quota q)
Returns a new Quota that is the difference of this
Quota and the given Quota. |
java.lang.String |
toString()
Returns the String representation of this Quota. |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, getFullQualifiedClassNameJAXB, getId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated protected TotalPrice.Quota()
public TotalPrice.Quota(TotalPrice.Quota q)
q - the Quota to be copied.
java.lang.IllegalArgumentException - if the given Quota is null.
public TotalPrice.Quota(TaxRate tr,
java.math.BigDecimal a)
Quota from the given TaxRate and
amount.
tr - the TaxRate.a - the amount.
java.lang.IllegalArgumentException - if the given TaxRate or amount is null.| Method Detail |
|---|
public final TaxRate getTaxRate()
TaxRate.
TaxRate.public final java.math.BigDecimal getAmount()
public final TotalPrice.Quota add(TotalPrice.Quota q)
Quota that is the sum of this
Quota and the given Quota.
q - the Quota to be added to this
Quota.
Quota.
java.lang.IllegalArgumentException - if the given Quota is null or its
TaxRate is not equal to the TaxRate of
this Quota.public final TotalPrice.Quota subtract(TotalPrice.Quota q)
Quota that is the difference of this
Quota and the given Quota.
q - the Quota to be subtracted from this
Quota.
Quota.
java.lang.IllegalArgumentException - if the given Quota is null or its
TaxRate is not equal to the TaxRate of
this Quota.public final TotalPrice.Quota multiply(java.math.BigDecimal m)
Quota that is the product of this
Quota and the given multiplicand.
m - the multiplicand.
Quota.
java.lang.IllegalArgumentException - if the given multiplicand is null.public final TotalPrice.Quota divide(java.math.BigDecimal d)
Quota that is the result of the division of
this Quota and the given divisor.
d - the divisor.
Quota.
java.lang.IllegalArgumentException - if the given divisor is null.public int compareTo(TotalPrice.Quota q)
this Quota with the given Quota for
order.
compareTo in interface java.lang.Comparable<TotalPrice.Quota>q - the Quota to be compared.
this Quota is less than, equal to, or greater
than the given Quota.
java.lang.IllegalArgumentException - if the given Quota is null.public java.lang.String toString()
String representation of this Quota.
toString in class java.lang.ObjectString representation.public boolean equals(java.lang.Object o)
Object is equal to this
Quota. Two Quotas are considered equal, if their
TaxRates and amounts are equal.
equals in class AbstractBasicEntityo - the Object.
true, if the given Object is equal to
this Quota.public int hashCode()
Quota.
hashCode in class AbstractBasicEntityAbstractBasicEntity.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||