theory.smart.axiom.units
Class PriceImpl
java.lang.Object
|
+--theory.smart.foundation.BelongingImpl
|
+--theory.smart.axiom.units.PriceImpl
- public class PriceImpl
- extends BelongingImpl
- implements Price
Represents the price of something. It has a value and a currency.
- See Also:
Price
,
PriceHome
, Serialized Form
Field Summary |
java.lang.String |
currency
currency
[Price] <*>------> [String ]
|
double |
value
value
[Price] <*>------> [double ]
|
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
value
public double value
value
[Price] <*>------> [double
]
currency
public java.lang.String currency
currency
[Price] <*>------> [String
]
PriceImpl
public PriceImpl()
getValue
public double getValue()
- Get the value of value
- Specified by:
- getValue in interface Price
- Returns:
- value.
setValue
public void setValue(double value)
- Set the value of value
- Specified by:
- setValue in interface Price
- Parameters:
value
- value to be added
getCurrency
public java.lang.String getCurrency()
- Get the value of currency
- Specified by:
- getCurrency in interface Price
- Returns:
- currency.
setCurrency
public void setCurrency(java.lang.String currency)
- Set the value of currency
- Specified by:
- setCurrency in interface Price
- Parameters:
currency
- currency to be added
value
public Belonging value()
compareTo
public int compareTo(java.lang.Object o)
- Overrides:
- compareTo in class BelongingImpl
Copyright © 2000 BEA Systems, Inc. All Rights Reserved