public final class OvernightInArrearsCapletFloorletPeriod extends Object implements org.joda.beans.ImmutableBean, Serializable
The payoff depend on the level of the compounded rate over the period. The option is of Asian type with the averaging mechanism given by the composition.
| Modifier and Type | Class and Description |
|---|---|
static class |
OvernightInArrearsCapletFloorletPeriod.Builder
The bean-builder for
OvernightInArrearsCapletFloorletPeriod. |
static class |
OvernightInArrearsCapletFloorletPeriod.Meta
The meta-bean for
OvernightInArrearsCapletFloorletPeriod. |
| Modifier and Type | Method and Description |
|---|---|
static OvernightInArrearsCapletFloorletPeriod.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
OptionalDouble |
getCaplet()
Gets the optional caplet strike.
|
Currency |
getCurrency()
Gets the primary currency of the payment period.
|
LocalDate |
getEndDate()
Gets the end date of the payment period.
|
OptionalDouble |
getFloorlet()
Gets the optional floorlet strike.
|
OvernightIndex |
getIndex()
Gets the Ibor index.
|
double |
getNotional()
Gets the notional amount, positive if receiving, negative if paying.
|
OvernightCompoundedRateComputation |
getOvernightRate()
Gets the rate to be observed.
|
LocalDate |
getPaymentDate()
Gets the date that payment occurs.
|
PutCall |
getPutCall()
Gets put or call.
|
LocalDate |
getStartDate()
Gets the start date of the payment period.
|
double |
getStrike()
Gets the strike value.
|
LocalDate |
getUnadjustedEndDate()
Gets the unadjusted end date.
|
LocalDate |
getUnadjustedStartDate()
Gets the unadjusted start date.
|
double |
getYearFraction()
Gets the year fraction that the accrual period represents.
|
int |
hashCode() |
static OvernightInArrearsCapletFloorletPeriod.Meta |
meta()
The meta-bean for
OvernightInArrearsCapletFloorletPeriod. |
OvernightInArrearsCapletFloorletPeriod.Meta |
metaBean() |
CurrencyAmount |
payoff(double rate)
Returns the caplet/floorlet payoff for a given compounded rate.
|
OvernightInArrearsCapletFloorletPeriod.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public OvernightIndex getIndex()
public double getStrike()
public PutCall getPutCall()
CALL is returned for a caplet, whereas PUT is returned for a floorlet.
public CurrencyAmount payoff(double rate)
rate - the compounded ratepublic static OvernightInArrearsCapletFloorletPeriod.Meta meta()
OvernightInArrearsCapletFloorletPeriod.public static OvernightInArrearsCapletFloorletPeriod.Builder builder()
public OvernightInArrearsCapletFloorletPeriod.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic Currency getCurrency()
The amounts of the notional are usually expressed in terms of this currency, however they can be converted from amounts in a different currency.
public double getNotional()
The notional amount applicable during the period.
The currency of the notional is specified by currency.
public LocalDate getStartDate()
This is the first date in the period. If the schedule adjusts for business days, then this is the adjusted date.
public LocalDate getEndDate()
This is the last date in the period. If the schedule adjusts for business days, then this is the adjusted date.
public LocalDate getUnadjustedStartDate()
The start date before any business day adjustment is applied.
When building, this will default to the start date if not specified.
public LocalDate getUnadjustedEndDate()
The end date before any business day adjustment is applied.
When building, this will default to the end date if not specified.
public double getYearFraction()
The value is usually calculated using a DayCount which may be different to that of the index.
Typically the value will be close to 1 for one year and close to 0.5 for six months.
The fraction may be greater than 1, but not less than 0.
public LocalDate getPaymentDate()
If the schedule adjusts for business days, then this is the adjusted date.
public OptionalDouble getCaplet()
This defines the strike value of a caplet.
If the period is not a caplet, this field will be absent.
public OptionalDouble getFloorlet()
This defines the strike value of a floorlet.
If the period is not a floorlet, this field will be absent.
public OvernightCompoundedRateComputation getOvernightRate()
The value of the period is based on this overnight compounded rate.
public OvernightInArrearsCapletFloorletPeriod.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.