public final class ImmutableSwapIndex extends Object implements SwapIndex, org.joda.beans.ImmutableBean, Serializable
A standard immutable implementation of SwapIndex that defines the swap trade template,
including the swap convention and tenor.
In most cases, applications should refer to indices by name, using SwapIndex.of(String).
The named index will typically be resolved to an instance of this class.
As such, it is recommended to use the SwapIndex interface in application
code rather than directly referring to this class.
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSwapIndex.Builder
The bean-builder for
ImmutableSwapIndex. |
static class |
ImmutableSwapIndex.Meta
The meta-bean for
ImmutableSwapIndex. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableSwapIndex.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
LocalTime |
getFixingTime()
Gets the fixing time.
|
ZoneId |
getFixingZone()
Gets the time-zone of the fixing time.
|
String |
getName()
Gets the index name.
|
FixedFloatSwapTemplate |
getTemplate()
Gets the template for creating a Fixed-Ibor or Fixed-Overnight swap.
|
int |
hashCode() |
boolean |
isActive()
Gets whether the index is active, defaulted to true.
|
static ImmutableSwapIndex.Meta |
meta()
The meta-bean for
ImmutableSwapIndex. |
ImmutableSwapIndex.Meta |
metaBean() |
static ImmutableSwapIndex |
of(String name,
LocalTime fixingTime,
ZoneId fixingZone,
FixedFloatSwapTemplate template)
Obtains an instance from the specified name, time and template.
|
ImmutableSwapIndex.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString()
Returns the name of the index.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcalculateFixingDateTime, extendedEnum, ofpublic static ImmutableSwapIndex of(String name, LocalTime fixingTime, ZoneId fixingZone, FixedFloatSwapTemplate template)
name - the index namefixingTime - the fixing timefixingZone - the time-zone of the fixing timetemplate - the swap templatepublic String toString()
public static ImmutableSwapIndex.Meta meta()
ImmutableSwapIndex.public static ImmutableSwapIndex.Builder builder()
public ImmutableSwapIndex.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic String getName()
public boolean isActive()
Over time some indices become inactive and are no longer produced. If this occurs, this flag will be set to false.
public LocalTime getFixingTime()
getFixingTime in interface SwapIndexpublic ZoneId getFixingZone()
getFixingZone in interface SwapIndexpublic FixedFloatSwapTemplate getTemplate()
getTemplate in interface SwapIndexpublic ImmutableSwapIndex.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.