org.csapi.jr.se.cs
Class ChargingPrice

java.lang.Object
  |
  +--org.csapi.jr.se.cs.ChargingPrice
All Implemented Interfaces:
java.io.Serializable

public final class ChargingPrice
extends java.lang.Object
implements java.io.Serializable

Defines the Sequence of Data Elements that identify a price. NOTE: Currencies as defined by ISO 4217: 1995.

See Also:
Serialized Form

Constructor Summary
ChargingPrice()
          Creates a new ChargingPrice instance.
ChargingPrice(java.lang.String _currency, org.csapi.jr.se.cs.Amount _amount)
          Creates a new ChargingPrice instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 org.csapi.jr.se.cs.Amount getAmount()
          This method returns a amount.
 java.lang.String getCurrency()
          This method returns a currency.
 int hashCode()
          Returns a hashcode value for the object.
 void setAmount(org.csapi.jr.se.cs.Amount amount)
          This method sets a amount.
 void setCurrency(java.lang.String currency)
          This method sets a currency.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChargingPrice

public ChargingPrice()
Creates a new ChargingPrice instance.


ChargingPrice

public ChargingPrice(java.lang.String _currency,
                     org.csapi.jr.se.cs.Amount _amount)
Creates a new ChargingPrice instance.

Parameters:
_currency -
_amount -
Method Detail

getCurrency

public java.lang.String getCurrency()
This method returns a currency.

Returns:
a String value

getAmount

public org.csapi.jr.se.cs.Amount getAmount()
This method returns a amount.

Returns:
a org.csapi.jr.se.cs.Amount value

setCurrency

public void setCurrency(java.lang.String currency)
This method sets a currency.


setAmount

public void setAmount(org.csapi.jr.se.cs.Amount amount)
This method sets a amount.


equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is 'equal to' this one.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns a hashcode value for the object.

Overrides:
hashCode in class java.lang.Object