public final class LogMoneynessStrike extends Object implements Strike, org.joda.beans.ImmutableBean, Serializable
The log-moneyness is defined as ln(strike/forward).
The strike value and forward value should strictly positive.
| Modifier and Type | Class and Description |
|---|---|
static class |
LogMoneynessStrike.Meta
The meta-bean for
LogMoneynessStrike. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
StrikeType |
getType()
Gets the type of the strike.
|
double |
getValue()
Gets the value of log-moneyness.
|
int |
hashCode() |
static LogMoneynessStrike.Meta |
meta()
The meta-bean for
LogMoneynessStrike. |
LogMoneynessStrike.Meta |
metaBean() |
static LogMoneynessStrike |
of(double logMoneyness)
Obtains an instance of
LogMoneyness with the value of log-moneyness. |
static LogMoneynessStrike |
ofStrikeAndForward(double strike,
double forward)
Obtains an instance of
LogMoneyness from the strike and forward. |
String |
toString() |
Strike |
withValue(double value)
Creates an new instance of the same strike type with value.
|
public static LogMoneynessStrike of(double logMoneyness)
LogMoneyness with the value of log-moneyness.logMoneyness - the value of log-moneynesspublic static LogMoneynessStrike ofStrikeAndForward(double strike, double forward)
LogMoneyness from the strike and forward.
The log-moneyness is defined as ln(strike/forward).
strike - the strike, not negativeforward - the forward, not negativepublic StrikeType getType()
Strikepublic Strike withValue(double value)
Strikepublic static LogMoneynessStrike.Meta meta()
LogMoneynessStrike.public LogMoneynessStrike.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic double getValue()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.