public final class SimpleStrike extends Object implements Strike, org.joda.beans.ImmutableBean, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleStrike.Meta
The meta-bean for
SimpleStrike. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
StrikeType |
getType()
Gets the type of the strike.
|
double |
getValue()
Gets the value of strike.
|
int |
hashCode() |
static SimpleStrike.Meta |
meta()
The meta-bean for
SimpleStrike. |
SimpleStrike.Meta |
metaBean() |
static SimpleStrike |
of(double strike)
Obtains an instance of
Strike with the value of strike. |
String |
toString() |
SimpleStrike |
withValue(double value)
Creates an new instance of the same strike type with value.
|
public static SimpleStrike of(double strike)
Strike with the value of strike.strike - the value of the strikepublic StrikeType getType()
Strikepublic SimpleStrike withValue(double value)
Strikepublic static SimpleStrike.Meta meta()
SimpleStrike.public SimpleStrike.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.