public final class IborCapFloor extends Object implements Product, Resolvable<ResolvedIborCapFloor>, org.joda.beans.ImmutableBean, Serializable
The Ibor cap/floor product consists of two legs, a cap/floor leg and a pay leg.
The cap/floor leg involves a set of call/put options on successive Ibor index rates,
known as Ibor caplets/floorlets.
The pay leg is any swap leg from a standard interest rate swap. The pay leg is absent for typical
Ibor cap/floor products, with the premium paid upfront instead, as defined in IborCapFloorTrade.
| Modifier and Type | Class and Description |
|---|---|
static class |
IborCapFloor.Meta
The meta-bean for
IborCapFloor. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableSet<Currency> |
allCurrencies()
Returns the set of currencies the product refers to.
|
ImmutableSet<Index> |
allIndices()
Returns the set of indices referred to by the cap/floor.
|
ImmutableSet<Currency> |
allPaymentCurrencies()
Returns the set of currencies that the product pays in.
|
boolean |
equals(Object obj) |
IborCapFloorLeg |
getCapFloorLeg()
Gets the Ibor cap/floor leg of the product.
|
Optional<SwapLeg> |
getPayLeg()
Gets the optional pay leg of the product.
|
int |
hashCode() |
static IborCapFloor.Meta |
meta()
The meta-bean for
IborCapFloor. |
IborCapFloor.Meta |
metaBean() |
static IborCapFloor |
of(IborCapFloorLeg capFloorLeg)
Obtains an instance from a cap/floor leg with no pay leg.
|
static IborCapFloor |
of(IborCapFloorLeg capFloorLeg,
SwapLeg payLeg)
Obtains an instance from a cap/floor leg and a pay leg.
|
ResolvedIborCapFloor |
resolve(ReferenceData refData) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisCrossCurrencypublic static IborCapFloor of(IborCapFloorLeg capFloorLeg)
The pay leg is absent in the resulting cap/floor.
capFloorLeg - the cap/floor legpublic static IborCapFloor of(IborCapFloorLeg capFloorLeg, SwapLeg payLeg)
capFloorLeg - the cap/floor legpayLeg - the pay legpublic ImmutableSet<Currency> allPaymentCurrencies()
ProductThis returns the complete set of payment currencies. This will typically return one or two currencies.
allPaymentCurrencies in interface Productpublic ImmutableSet<Currency> allCurrencies()
ProductThis returns the complete set of currencies, not just the payment currencies. For example, the sets will differ when one of the currencies is non-deliverable.
allCurrencies in interface Productpublic ImmutableSet<Index> allIndices()
A cap/floor will typically refer to one index, such as 'GBP-LIBOR-3M'. Calling this method will return the complete list of indices.
public ResolvedIborCapFloor resolve(ReferenceData refData)
resolve in interface Resolvable<ResolvedIborCapFloor>public static IborCapFloor.Meta meta()
IborCapFloor.public IborCapFloor.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic IborCapFloorLeg getCapFloorLeg()
This is associated with periodic payments based on Ibor rate. The payments are Ibor caplets or Ibor floorlets.
public Optional<SwapLeg> getPayLeg()
These periodic payments are not made for typical cap/floor products. Instead the premium is paid upfront.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.