org.csapi.jr.se.am
Class Voucher

java.lang.Object
  extended byorg.csapi.jr.se.am.Voucher
All Implemented Interfaces:
java.io.Serializable

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

Defines the structure of data elements that specifies a voucher.

See Also:
Serialized Form

Constructor Summary
Voucher()
          Creates a new Voucher instance.
Voucher(int _voucherID, Address _userID, BalanceInfo _balanceInfo)
          Creates a new Voucher instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 BalanceInfo getBalanceInfo()
          This method returns a balanceInfo.
 Address getUserID()
          This method returns a userID.
 int getVoucherID()
          This method returns a voucherID.
 int hashCode()
          Returns a hashcode value for the object.
 void setBalanceInfo(BalanceInfo balanceInfo)
          This method sets a balanceInfo.
 void setUserID(Address userID)
          This method sets a userID.
 void setVoucherID(int voucherID)
          This method sets a voucherID.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Voucher

public Voucher()
Creates a new Voucher instance.


Voucher

public Voucher(int _voucherID,
               Address _userID,
               BalanceInfo _balanceInfo)
Creates a new Voucher instance.

Parameters:
_voucherID - Specifies the unique identifier for this voucher.
_userID - Specifies the user to who the voucher belongs.
_balanceInfo - Specifies the amount of the voucher.
Method Detail

getVoucherID

public int getVoucherID()
This method returns a voucherID.

Returns:
a int value

getUserID

public Address getUserID()
This method returns a userID.

Returns:
a org.csapi.jr.se.Address value

getBalanceInfo

public BalanceInfo getBalanceInfo()
This method returns a balanceInfo.

Returns:
a org.csapi.jr.se.am.BalanceInfo value

setVoucherID

public void setVoucherID(int voucherID)
This method sets a voucherID.


setUserID

public void setUserID(Address userID)
This method sets a userID.


setBalanceInfo

public void setBalanceInfo(BalanceInfo balanceInfo)
This method sets a balanceInfo.


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.