com.opengamma.strata.market.curve

Class CurveGroupEntry

• All Implemented Interfaces:
Serializable, Bean, ImmutableBean

public final class CurveGroupEntry
extends Object
implements ImmutableBean, Serializable
A single entry in the curve group definition.

Each entry stores the definition of a single curve and how it is to be used. This structure allows the curve itself to be used for multiple purposes.

The currencies are used to specify that the curve is to be used as a discount curve. The indices are used to specify that the curve is to be used as a forward curve.

Serialized Form
• Nested Class Summary

Nested Classes
Modifier and Type Class and Description
static class  CurveGroupEntry.Builder
The bean-builder for CurveGroupEntry.
static class  CurveGroupEntry.Meta
The meta-bean for CurveGroupEntry.
• Method Summary

All Methods
Modifier and Type Method and Description
static CurveGroupEntry.Builder builder()
Returns a builder used to create an instance of the bean.
boolean equals(Object obj)
CurveName getCurveName()
Gets the curve name.
ImmutableSet<Currency> getDiscountCurrencies()
Gets the currencies for which the curve provides discount rates.
ImmutableSet<Index> getIndices()
Gets the indices for which the curve provides forward rates.
<T extends Index>ImmutableSet<T> getIndices(Class<T> indexType)
Gets the subset of indices matching the specified type for which the curve provides forward rates.
int hashCode()
static CurveGroupEntry.Meta meta()
The meta-bean for CurveGroupEntry.
CurveGroupEntry.Meta metaBean()
CurveGroupEntry.Builder toBuilder()
Returns a builder that allows this bean to be mutated.
String toString()
• Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait
• Methods inherited from interface org.joda.beans.Bean

property, propertyNames
• Method Detail

• getIndices

public <T extends Index> ImmutableSet<T> getIndices(Class<T> indexType)
Gets the subset of indices matching the specified type for which the curve provides forward rates.

The set of indices is filtered and cast using the specified type. This is empty if the curve is not used for forward rates.

Type Parameters:
T - the type of index
Parameters:
indexType - the type of index required
Returns:
the subset of indices
• meta

public static CurveGroupEntry.Meta meta()
The meta-bean for CurveGroupEntry.
Returns:
the meta-bean, not null
• builder

public static CurveGroupEntry.Builder builder()
Returns a builder used to create an instance of the bean.
Returns:
the builder, not null
• metaBean

public CurveGroupEntry.Meta metaBean()
Specified by:
metaBean in interface Bean
• getCurveName

public CurveName getCurveName()
Gets the curve name.
Returns:
the value of the property, not null
• getDiscountCurrencies

public ImmutableSet<Currency> getDiscountCurrencies()
Gets the currencies for which the curve provides discount rates. This is empty if the curve is not used for Ibor rates.
Returns:
the value of the property, not null
• getIndices

public ImmutableSet<Index> getIndices()
Gets the indices for which the curve provides forward rates. This is empty if the curve is not used for forward rates.
Returns:
the value of the property, not null
• toBuilder

public CurveGroupEntry.Builder toBuilder()
Returns a builder that allows this bean to be mutated.
Returns:
the mutable builder, not null
• equals

public boolean equals(Object obj)
Overrides:
equals in class Object
• hashCode

public int hashCode()
Overrides:
hashCode in class Object
• toString

public String toString()
Overrides:
toString in class Object