Class LogMoneynessStrike
- java.lang.Object
 - 
- com.opengamma.strata.market.option.LogMoneynessStrike
 
 
- 
- All Implemented Interfaces:
 Strike,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class LogMoneynessStrike extends Object implements Strike, org.joda.beans.ImmutableBean, Serializable
A strike based on log-moneyness.The log-moneyness is defined as
ln(strike/forward). The strike value and forward value should strictly positive.- See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLogMoneynessStrike.MetaThe meta-bean forLogMoneynessStrike. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StrikeTypegetType()Gets the type of the strike.doublegetValue()Gets the value of log-moneyness.inthashCode()static LogMoneynessStrike.Metameta()The meta-bean forLogMoneynessStrike.LogMoneynessStrike.MetametaBean()static LogMoneynessStrikeof(double logMoneyness)Obtains an instance ofLogMoneynesswith the value of log-moneyness.static LogMoneynessStrikeofStrikeAndForward(double strike, double forward)Obtains an instance ofLogMoneynessfrom the strike and forward.StringtoString()StrikewithValue(double value)Creates an new instance of the same strike type with value. 
 - 
 
- 
- 
Method Detail
- 
of
public static LogMoneynessStrike of(double logMoneyness)
Obtains an instance ofLogMoneynesswith the value of log-moneyness.- Parameters:
 logMoneyness- the value of log-moneyness- Returns:
 - the instance
 
 
- 
ofStrikeAndForward
public static LogMoneynessStrike ofStrikeAndForward(double strike, double forward)
Obtains an instance ofLogMoneynessfrom the strike and forward.The log-moneyness is defined as
ln(strike/forward).- Parameters:
 strike- the strike, not negativeforward- the forward, not negative- Returns:
 - the instance
 
 
- 
getType
public StrikeType getType()
Description copied from interface:StrikeGets the type of the strike. 
- 
withValue
public Strike withValue(double value)
Description copied from interface:StrikeCreates an new instance of the same strike type with value. 
- 
meta
public static LogMoneynessStrike.Meta meta()
The meta-bean forLogMoneynessStrike.- Returns:
 - the meta-bean, not null
 
 
- 
metaBean
public LogMoneynessStrike.Meta metaBean()
- Specified by:
 metaBeanin interfaceorg.joda.beans.Bean
 
- 
getValue
public double getValue()
Gets the value of log-moneyness. 
 - 
 
 -