org.marketcetera.strategy.util
Class OptionContractPair

java.lang.Object
  extended by org.marketcetera.strategy.util.OptionContractPair
All Implemented Interfaces:
Comparable<OptionContractPair>

@ThreadSafe
public final class OptionContractPair
extends Object
implements Comparable<OptionContractPair>

Represents the put and call of a specific option and their most recent market data, if available.

The put and the call in this pair are guaranteed to be for the same symbol, expiry, and strike.

Since:
2.0.0
Version:
$Id: OptionContractPair.java 16154 2012-07-14 16:34:05Z colin $
Author:
Colin DuPlantis

Method Summary
 int compareTo(OptionContractPair inPair)
           
 boolean equals(Object inOther)
           
 OptionContract getCall()
          Gets the call OptionContract value.
 OptionContract getPut()
          Gets the put OptionContract value.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPut

public OptionContract getPut()
Gets the put OptionContract value.

Returns:
an OptionContract value or null

getCall

public OptionContract getCall()
Gets the call OptionContract value.

Returns:
an OptionContract value or null

compareTo

public int compareTo(OptionContractPair inPair)
Specified by:
compareTo in interface Comparable<OptionContractPair>

equals

public boolean equals(Object inOther)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012. All Rights Reserved.