public final class SwaptionExerciseDate extends Object implements Comparable<SwaptionExerciseDate>, org.joda.beans.ImmutableBean, Serializable
This is the resolved form of SwaptionExercise and is an input to the pricers.
This class is bound to data that changes over time, such as holiday calendars. If the data changes, such as the addition of a new holiday, the resolved form will not be updated. Care must be taken when placing the resolved form in a cache or persistence layer.
| Modifier and Type | Class and Description |
|---|---|
static class |
SwaptionExerciseDate.Builder
The bean-builder for
SwaptionExerciseDate. |
| Modifier and Type | Method and Description |
|---|---|
static SwaptionExerciseDate.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
int |
compareTo(SwaptionExerciseDate other) |
boolean |
equals(Object obj) |
LocalDate |
getExerciseDate()
Gets the adjusted exercise date.
|
LocalDate |
getSwapStartDate()
Gets the adjusted swap start date.
|
LocalDate |
getUnadjustedExerciseDate()
Gets the unadjusted exercise date.
|
int |
hashCode() |
static org.joda.beans.TypedMetaBean<SwaptionExerciseDate> |
meta()
The meta-bean for
SwaptionExerciseDate. |
org.joda.beans.TypedMetaBean<SwaptionExerciseDate> |
metaBean() |
static SwaptionExerciseDate |
of(LocalDate exerciseDate,
LocalDate unadjustedExerciseDate,
LocalDate swapStartDate)
Obtains an instance.
|
SwaptionExerciseDate.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public int compareTo(SwaptionExerciseDate other)
compareTo in interface Comparable<SwaptionExerciseDate>public static org.joda.beans.TypedMetaBean<SwaptionExerciseDate> meta()
SwaptionExerciseDate.public static SwaptionExerciseDate of(LocalDate exerciseDate, LocalDate unadjustedExerciseDate, LocalDate swapStartDate)
exerciseDate - the value of the property, not nullunadjustedExerciseDate - the value of the property, not nullswapStartDate - the value of the property, not nullpublic static SwaptionExerciseDate.Builder builder()
public org.joda.beans.TypedMetaBean<SwaptionExerciseDate> metaBean()
metaBean in interface org.joda.beans.Beanpublic LocalDate getExerciseDate()
This date has been adjusted to be a business day.
public LocalDate getUnadjustedExerciseDate()
This date may be a non-business day.
public LocalDate getSwapStartDate()
This date has been adjusted to be a business day.
public SwaptionExerciseDate.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.