@ThreadSafe public final class OptionContractPair extends Object implements Comparable<OptionContractPair>
The put and the call in this pair are guaranteed to be for the same symbol, expiry, and strike.
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(OptionContractPair inPair) |
boolean |
equals(Object inOther) |
OptionContract |
getCall()
Gets the call
OptionContract value. |
OptionContract |
getPut()
Gets the put
OptionContract value. |
int |
hashCode() |
public OptionContract getPut()
OptionContract value.OptionContract value or nullpublic OptionContract getCall()
OptionContract value.OptionContract value or nullpublic int compareTo(OptionContractPair inPair)
compareTo in interface Comparable<OptionContractPair>Copyright © 2015. All Rights Reserved.