org.csapi.jr.se.cs
Class Volume

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

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

Defines a volume.

See Also:
Serialized Form

Constructor Summary
Volume()
          Creates a new Volume instance.
Volume(org.csapi.jr.se.cs.Amount _amount, int _unit)
          Creates a new Volume 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.
 int getUnit()
          This method returns a unit.
 int hashCode()
          Returns a hashcode value for the object.
 void setAmount(org.csapi.jr.se.cs.Amount amount)
          This method sets a amount.
 void setUnit(int unit)
          This method sets a unit.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Volume

public Volume()
Creates a new Volume instance.


Volume

public Volume(org.csapi.jr.se.cs.Amount _amount,
              int _unit)
Creates a new Volume instance.

Parameters:
_amount -
_unit -
Method Detail

getAmount

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

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

getUnit

public int getUnit()
This method returns a unit.

Returns:
a int value

setAmount

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


setUnit

public void setUnit(int unit)
This method sets a unit.


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