OSMQ
v2.0.1

osmq.datatypes
Class Price

java.lang.Object
  extended byjava.lang.Number
      extended byosmq.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

Field Summary
static Price ZeroPrice
           
 
Constructor Summary
Price()
           
Price(double value)
           
Price(int value)
           
Price(java.lang.String value)
           
 
Method Summary
 Price dividedBy(int value)
           
 double doubleValue()
           
 boolean equals(Price price)
           
 float floatValue()
           
 double getDouble()
           
 java.lang.String getFormattedString()
           
 int getInt()
           
 java.lang.String getString()
           
 boolean greaterThan(Price price)
           
 int intValue()
           
 boolean lessThan(Price price)
           
 long longValue()
           
static void main(java.lang.String[] args)
           
 Price minus(double amount)
           
 Price minus(Price price)
           
 boolean notEqual(Price price)
           
 Price plus(double amount)
           
 Price plus(Price price)
           
 Price times(int value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ZeroPrice

public static final Price ZeroPrice
Constructor Detail

Price

public Price()

Price

public Price(double value)

Price

public Price(int value)

Price

public Price(java.lang.String value)
Method Detail

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)

(c) 2000 - 2003 MQue Systems
All Rights Reserved