Class StockMarketEvent
java.lang.Object
java.util.EventObject
org.rspeer.event.Event<StockMarketTransaction>
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStockMarketEvent(int index, StockMarketTransaction source, StockMarketTransaction previous) Constructs a prototypical Event. -
Method Summary
Methods inherited from class org.rspeer.event.Event
consume, getSource, isConsumedMethods inherited from class EventObject
toString
-
Constructor Details
-
StockMarketEvent
Constructs a prototypical Event.- Parameters:
index-source- The object on which the Event initially occurred.- Throws:
IllegalArgumentException- if source is null.
-
-
Method Details
-
getIndex
public int getIndex() -
getPrevious
- Returns:
- Offer object before it was changed. Can be null if no prev offer
-