org.csapi.jr.se.cs
Class Volume

java.lang.Object
  extended byorg.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(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.
 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(Amount amount)
          This method sets a amount.
 void setUnit(int unit)
          This method sets a unit.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Volume

public Volume()
Creates a new Volume instance.


Volume

public Volume(Amount _amount,
              int _unit)
Creates a new Volume instance.

Parameters:
_amount -
_unit -
Method Detail

getAmount

public 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(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.


hashCode

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