Inherits from Comparable
Name | |
---|---|
MamaPrice() | |
MamaPrice(double value) | |
MamaPrice(double value, MamaPricePrecision precision) | |
MamaPrice(MamaPrice src) | |
int | hashCode() |
boolean | equals(Object obj) |
int | compareTo(Object obj) |
void | add(MamaPrice value) |
void | add(double value) |
void | subtract(MamaPrice value) |
void | subtract(double value) |
native void | clear() |
void | set(double priceValue, MamaPriceHints hints) |
native void | setValue(double value) |
native void | setFromString(String value) |
void | setPrecision(MamaPricePrecision precision) |
void | setHints(MamaPriceHints hints) |
native double | getValue() |
double | getRoundedValue() |
double | getRoundedValue(MamaPricePrecision precision) |
MamaPricePrecision | getPrecision() |
MamaPriceHints | getHints() |
native String | toString() |
void | negate() |
boolean | isZero() |
native void | setIsValidPrice(boolean valid) |
native boolean | getIsValidPrice() |
native void | copy(MamaPrice price) |
native void | destroy() |
Name | |
---|---|
long | getPointerVal() |
Object | clone() |
void | finalize() |
Name | |
---|---|
final double | EPSILON |
inline MamaPrice()
inline MamaPrice(
double value
)
inline MamaPrice(
double value,
MamaPricePrecision precision
)
inline MamaPrice(
MamaPrice src
)
inline int hashCode()
inline boolean equals(
Object obj
)
inline int compareTo(
Object obj
)
inline void add(
MamaPrice value
)
inline void add(
double value
)
inline void subtract(
MamaPrice value
)
inline void subtract(
double value
)
native void clear()
inline void set(
double priceValue,
MamaPriceHints hints
)
native void setValue(
double value
)
native void setFromString(
String value
)
inline void setPrecision(
MamaPricePrecision precision
)
inline void setHints(
MamaPriceHints hints
)
native double getValue()
inline double getRoundedValue()
Exceptions:
Return: The rounded value.
This function obtains the double value of the price rounded to zero precision.
inline double getRoundedValue(
MamaPricePrecision precision
)
Parameters:
Exceptions:
Return: The rounded value.
This function obtains the double value of the price rounded to the supplied precision.
inline MamaPricePrecision getPrecision()
inline MamaPriceHints getHints()
native String toString()
inline void negate()
inline boolean isZero()
native void setIsValidPrice(
boolean valid
)
native boolean getIsValidPrice()
native void copy(
MamaPrice price
)
native void destroy()
inline long getPointerVal()
inline Object clone()
inline void finalize()
static final double EPSILON = 0.00000000001;
MAMA_PRICE_EPSILON a value that is considered equivalent to zero.
Updated on 2023-03-31 at 15:29:43 +0100