osmq.datatypes
Class Price
java.lang.Object
java.lang.Number
osmq.datatypes.Price
- All Implemented Interfaces:
- java.io.Serializable
- public class Price
- extends java.lang.Number
An immutable data type representing Price.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Number |
byteValue, shortValue |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ZeroPrice
public static final Price ZeroPrice
Price
public Price()
Price
public Price(double value)
Price
public Price(int value)
Price
public Price(java.lang.String value)
getDouble
public double getDouble()
getInt
public int getInt()
toString
public java.lang.String toString()
getString
public java.lang.String getString()
getFormattedString
public java.lang.String getFormattedString()
plus
public Price plus(double amount)
plus
public Price plus(Price price)
minus
public Price minus(double amount)
minus
public Price minus(Price price)
times
public Price times(int value)
dividedBy
public Price dividedBy(int value)
greaterThan
public boolean greaterThan(Price price)
lessThan
public boolean lessThan(Price price)
notEqual
public boolean notEqual(Price price)
equals
public boolean equals(Price price)
doubleValue
public double doubleValue()
floatValue
public float floatValue()
intValue
public int intValue()
longValue
public long longValue()
main
public static void main(java.lang.String[] args)