Class SimpleStrike
- java.lang.Object
-
- com.opengamma.strata.market.option.SimpleStrike
-
- All Implemented Interfaces:
Strike
,Serializable
,org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class SimpleStrike extends Object implements Strike, org.joda.beans.ImmutableBean, Serializable
A simple strike value.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleStrike.Meta
The meta-bean forSimpleStrike
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 forSimpleStrike
.SimpleStrike.Meta
metaBean()
static SimpleStrike
of(double strike)
Obtains an instance ofStrike
with the value of strike.String
toString()
SimpleStrike
withValue(double value)
Creates an new instance of the same strike type with value.
-
-
-
Method Detail
-
of
public static SimpleStrike of(double strike)
Obtains an instance ofStrike
with the value of strike.- Parameters:
strike
- the value of the strike- Returns:
- the instance
-
getType
public StrikeType getType()
Description copied from interface:Strike
Gets the type of the strike.
-
withValue
public SimpleStrike withValue(double value)
Description copied from interface:Strike
Creates an new instance of the same strike type with value.
-
meta
public static SimpleStrike.Meta meta()
The meta-bean forSimpleStrike
.- Returns:
- the meta-bean, not null
-
metaBean
public SimpleStrike.Meta metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getValue
public double getValue()
Gets the value of strike.
-
-