|
|
|
|
|
||||||||||
| 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.TaxRate
@Entity(name="checkout_TaxRate") public class TaxRate
The TaxRate.
| Constructor Summary | |
|---|---|
protected |
TaxRate()
Deprecated. |
|
TaxRate(java.lang.String n,
java.math.BigDecimal p)
Creates a new TaxRate from the given name and percentage. |
|
TaxRate(TaxGroup tg)
Creates a new TaxRate from the given TaxGroup. |
|
TaxRate(TaxRate tr)
The copy constructor. |
| Method Summary | |
|---|---|
int |
compareTo(TaxRate tr)
Compares this TaxRate with the given TaxRate for
order. |
boolean |
equals(java.lang.Object o)
Determines whether the given Object is equal to this
TaxRate. |
java.lang.String |
getName()
Returns the name. |
java.math.BigDecimal |
getPercentage()
Returns the percentage. |
int |
hashCode()
Returns the hash code for this TaxRate. |
java.lang.String |
toString()
Returns the String representation of this TaxRate. |
| 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 TaxRate()
public TaxRate(TaxRate tr)
tr - the TaxRate to be copied.
java.lang.IllegalArgumentException - if the given TaxRate is null.
public TaxRate(java.lang.String n,
java.math.BigDecimal p)
TaxRate from the given name and percentage.
n - the name.p - the percentage.
java.lang.IllegalArgumentException - if the given name or percentage is null.public TaxRate(TaxGroup tg)
TaxRate from the given TaxGroup.
tg - the TaxGroup.
java.lang.IllegalArgumentException - if the given TaxGroup is null.| Method Detail |
|---|
public final java.lang.String getName()
public final java.math.BigDecimal getPercentage()
public int compareTo(TaxRate tr)
this TaxRate with the given TaxRate for
order.
compareTo in interface java.lang.Comparable<TaxRate>tr - the TaxRate to be compared.
this
TaxRate is less than, equal to, or greater than the given
TaxRate.
java.lang.IllegalArgumentException - if the given TaxRate is null.public java.lang.String toString()
String representation of this TaxRate.
toString in class java.lang.ObjectString representation.public boolean equals(java.lang.Object o)
Object is equal to this
TaxRate. Two TaxRates are considered equal, if their
names and percentages are equal.
equals in class AbstractBasicEntityo - the Object.
true, if the given Object is equal to
this TaxRate.public int hashCode()
TaxRate.
hashCode in class AbstractBasicEntityAbstractBasicEntity.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||