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 classSimpleStrike.MetaThe meta-bean forSimpleStrike.
-
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 strike.inthashCode()static SimpleStrike.Metameta()The meta-bean forSimpleStrike.SimpleStrike.MetametaBean()static SimpleStrikeof(double strike)Obtains an instance ofStrikewith the value of strike.StringtoString()SimpleStrikewithValue(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 ofStrikewith the value of strike.- Parameters:
strike- the value of the strike- Returns:
- the instance
-
getType
public StrikeType getType()
Description copied from interface:StrikeGets the type of the strike.
-
withValue
public SimpleStrike withValue(double value)
Description copied from interface:StrikeCreates 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:
metaBeanin interfaceorg.joda.beans.Bean
-
getValue
public double getValue()
Gets the value of strike.
-
-