com.anywherecommerce.android.sdk.util
Class Amount
-
java.lang.Object
-
com.anywherecommerce.android.sdk.util.Amount
-
All Implemented Interfaces:java.io.Serializable-
public class <span class="typeNameLabel">Amount</span> extends java.lang.Object implements java.io.Serializable
Created by Admin on 11/16/2017.
See Also:Serialized Form
Nested Class Summary
Modifier and TypeClass and Description`static class ``<span class="memberNameLink">
Constructor Summary
Constructor and Description`<span class="memberNameLink">
Amount value)
Amount(java.math.BigDecimal value)
Amount(double value)
Amount(java.lang.String value)`
Method Summary
Modifier and TypeMethod and Description`
Amount``
Amount amount)
Amount``
addTo(java.math.BigDecimal amount)
Amount``
addTo(java.lang.String amount)
T``
convertTo(java.lang.Class clazz)
boolean``
Amount amount)
boolean``
isEquivalentTo(java.math.BigDecimal amount)
boolean``
isEquivalentTo(double amount)
boolean``
isEquivalentTo(java.lang.String amount)
boolean``
Amount amount)
boolean``
isGreaterThan(java.math.BigDecimal amount)
boolean``
isGreaterThan(double amount)
boolean``
isGreaterThan(java.lang.String amount)
boolean``
Amount amount)
boolean``
isLessThan(java.math.BigDecimal amount)
boolean``
isLessThan(double amount)
boolean``
isLessThan(java.lang.String amount)
boolean``
isNull()
boolean``
Amount``
Amount amount)
Amount``
multiplyBy(java.math.BigDecimal amount)
Amount``
multiplyBy(java.lang.String amount)
void``
setScale(int decimalPlaces)
void``
setValue(java.math.BigDecimal value)
void``
setValue(double value)
void``
setValue(java.lang.String value)
Amount``
Amount amount)
Amount``
subtractBy(java.math.BigDecimal amount)
Amount``
subtractBy(java.lang.String amount)
java.math.BigDecimal``
toDecimal()
java.lang.String``
toDisplayString()
double``
toDouble()
java.lang.String``
toLocalizedCurrencyString()
java.lang.String``
toLocalizedCurrencyStringWithSymbols()
java.lang.String``
toLocalizedPercentageString()
java.lang.String``
toLocalizedPercentageString(int decimalPlaces)
java.lang.String``
toString()`
Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`
Constructor Detail
Amount
`public Amount(java.math.BigDecimal value)`
Amount
`public Amount(double value)`
Amount
`public Amount(java.lang.String value)`
Amount
`public Amount(
Amount value)`
Method Detail
setValue
`public void setValue(double value)`
setValue
`public void setValue(java.math.BigDecimal value)`
setValue
`public void setValue(java.lang.String value)`
isPercentageType
`public boolean isPercentageType()`
isNull
`public boolean isNull()`
setScale
`public void setScale(int decimalPlaces)`
isLessThan
`public boolean isLessThan(java.lang.String amount)`
isLessThan
`public boolean isLessThan(double amount)`
isLessThan
`public boolean isLessThan(java.math.BigDecimal amount)`
isLessThan
`public boolean isLessThan(
Amount amount)`
isGreaterThan
`public boolean isGreaterThan(java.lang.String amount)`
isGreaterThan
`public boolean isGreaterThan(double amount)`
isGreaterThan
`public boolean isGreaterThan(java.math.BigDecimal amount)`
isGreaterThan
`public boolean isGreaterThan(
Amount amount)`
isEquivalentTo
`public boolean isEquivalentTo(java.lang.String amount)`
isEquivalentTo
`public boolean isEquivalentTo(double amount)`
isEquivalentTo
`public boolean isEquivalentTo(java.math.BigDecimal amount)`
isEquivalentTo
`public boolean isEquivalentTo(
Amount amount)`
multiplyBy
`public
Amount multiplyBy(java.lang.String amount)`
multiplyBy
`public
Amount multiplyBy(java.math.BigDecimal amount)`
multiplyBy
`public
Amount multiplyBy(
Amount amount)`
addTo
`public
Amount addTo(java.lang.String amount)`
addTo
`public
Amount addTo(java.math.BigDecimal amount)`
addTo
`public
Amount addTo(
Amount amount)`
subtractBy
`public
Amount subtractBy(java.lang.String amount)`
subtractBy
`public
Amount subtractBy(java.math.BigDecimal amount)`
subtractBy
`public
Amount subtractBy(
Amount amount)`
toLocalizedCurrencyStringWithSymbols
`public java.lang.String toLocalizedCurrencyStringWithSymbols()`
toLocalizedCurrencyString
`public java.lang.String toLocalizedCurrencyString()`
toLocalizedPercentageString
`public java.lang.String toLocalizedPercentageString()`
toLocalizedPercentageString
`public java.lang.String toLocalizedPercentageString(int decimalPlaces)`
toDouble
`public double toDouble()`
toDecimal
`public java.math.BigDecimal toDecimal()`
toDisplayString
`public java.lang.String toDisplayString()`
toString
`public java.lang.String toString()`Overrides:`toString` in class `java.lang.Object`
convertTo
`public <T> T convertTo(java.lang.Class<T> clazz)`