samples.j2ee.ejb.basic.statefulSession
Class TradeResult

java.lang.Object
  |
  +--samples.j2ee.ejb.basic.statefulSession.TradeResult

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

This class reflects the results of a buy/sell transaction.

See Also:
Serialized Form

Field Summary
 int numberTraded
           
 double priceSoldAt
           
 
Constructor Summary
TradeResult(int n, double p)
          Returns the number of shares and sales price for a buy or sell transaction in a TradeResult object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numberTraded

public int numberTraded

priceSoldAt

public double priceSoldAt
Constructor Detail

TradeResult

public TradeResult(int n,
                   double p)
Returns the number of shares and sales price for a buy or sell transaction in a TradeResult object.
Parameters:
n - int Number of shares traded
p - double Price shares sold at