Class SwaptionExerciseDate.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwaptionExerciseDate>
-
- com.opengamma.strata.product.swaption.SwaptionExerciseDate.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<SwaptionExerciseDate>
- Enclosing class:
- SwaptionExerciseDate
public static final class SwaptionExerciseDate.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwaptionExerciseDate>
The bean-builder forSwaptionExerciseDate
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SwaptionExerciseDate
build()
SwaptionExerciseDate.Builder
exerciseDate(LocalDate exerciseDate)
Sets the adjusted exercise date.Object
get(String propertyName)
SwaptionExerciseDate.Builder
set(String propertyName, Object newValue)
SwaptionExerciseDate.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
SwaptionExerciseDate.Builder
swapStartDate(LocalDate swapStartDate)
Sets the adjusted swap start date.String
toString()
SwaptionExerciseDate.Builder
unadjustedExerciseDate(LocalDate unadjustedExerciseDate)
Sets the unadjusted exercise date.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<SwaptionExerciseDate>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwaptionExerciseDate>
-
set
public SwaptionExerciseDate.Builder set(String propertyName, Object newValue)
-
set
public SwaptionExerciseDate.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<SwaptionExerciseDate>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwaptionExerciseDate>
-
build
public SwaptionExerciseDate build()
-
exerciseDate
public SwaptionExerciseDate.Builder exerciseDate(LocalDate exerciseDate)
Sets the adjusted exercise date.This date has been adjusted to be a business day.
- Parameters:
exerciseDate
- the new value, not null- Returns:
- this, for chaining, not null
-
unadjustedExerciseDate
public SwaptionExerciseDate.Builder unadjustedExerciseDate(LocalDate unadjustedExerciseDate)
Sets the unadjusted exercise date.This date may be a non-business day.
- Parameters:
unadjustedExerciseDate
- the new value, not null- Returns:
- this, for chaining, not null
-
swapStartDate
public SwaptionExerciseDate.Builder swapStartDate(LocalDate swapStartDate)
Sets the adjusted swap start date.This date has been adjusted to be a business day.
- Parameters:
swapStartDate
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwaptionExerciseDate>
-
-