public final class MoneynessStrike extends Object implements Strike, org.joda.beans.ImmutableBean, Serializable
The moneyness is defined as strike/forward.
The strike should be nonnegative and the forward should be strictly positive.
| Modifier and Type | Class and Description |
|---|---|
static class |
MoneynessStrike.Meta
The meta-bean for
MoneynessStrike. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
StrikeType |
getType()
Gets the type of the strike.
|
double |
getValue()
Gets the value of moneyness.
|
int |
hashCode() |
static MoneynessStrike.Meta |
meta()
The meta-bean for
MoneynessStrike. |
MoneynessStrike.Meta |
metaBean() |
static MoneynessStrike |
of(double moneyness)
Obtains an instance of
Moneyness with the value of moneyness. |
static MoneynessStrike |
ofStrikeAndForward(double strike,
double forward)
Obtains an instance of
Moneyness from the strike and forward. |
String |
toString() |
MoneynessStrike |
withValue(double value)
Creates an new instance of the same strike type with value.
|
public static MoneynessStrike of(double moneyness)
Moneyness with the value of moneyness.moneyness - the value of moneyness, not negativepublic static MoneynessStrike ofStrikeAndForward(double strike, double forward)
Moneyness from the strike and forward.
The moneyness is defined as strike/forward.
strike - the strike, not negativeforward - the forward, not negativepublic StrikeType getType()
Strikepublic MoneynessStrike withValue(double value)
Strikepublic static MoneynessStrike.Meta meta()
MoneynessStrike.public MoneynessStrike.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.