Interface Strike
-
- All Known Implementing Classes:
DeltaStrike
,LogMoneynessStrike
,MoneynessStrike
,SimpleStrike
public interface Strike
The strike of an option, describing both type and value.The strike of option instruments is represented in different ways. For example, the strike types include delta, moneyness, log-moneyness, and strike itself.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
getLabel()
Gets a label describing the strike.StrikeType
getType()
Gets the type of the strike.double
getValue()
Gets the value of the strike.Strike
withValue(double value)
Creates an new instance of the same strike type with value.
-
-
-
Method Detail
-
getType
StrikeType getType()
Gets the type of the strike.- Returns:
- the strike type
-
getValue
double getValue()
Gets the value of the strike.- Returns:
- the value
-
getLabel
default String getLabel()
Gets a label describing the strike.- Returns:
- the label
-
withValue
Strike withValue(double value)
Creates an new instance of the same strike type with value.- Parameters:
value
- the new value- Returns:
- the new strike instance
-
-