Class SwaptionExerciseDates.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwaptionExerciseDates>
-
- com.opengamma.strata.product.swaption.SwaptionExerciseDates.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<SwaptionExerciseDates>
- Enclosing class:
- SwaptionExerciseDates
public static final class SwaptionExerciseDates.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwaptionExerciseDates>
The bean-builder forSwaptionExerciseDates
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SwaptionExerciseDates.Builder
allDates(boolean allDates)
Sets whether all dates are valid dates for swaption exercise between the first and last date.SwaptionExerciseDates
build()
SwaptionExerciseDates.Builder
dates(SwaptionExerciseDate... dates)
Sets thedates
property in the builder from an array of objects.SwaptionExerciseDates.Builder
dates(List<SwaptionExerciseDate> dates)
Sets an explicit list of exercise dates.Object
get(String propertyName)
SwaptionExerciseDates.Builder
set(String propertyName, Object newValue)
SwaptionExerciseDates.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<SwaptionExerciseDates>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwaptionExerciseDates>
-
set
public SwaptionExerciseDates.Builder set(String propertyName, Object newValue)
-
set
public SwaptionExerciseDates.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<SwaptionExerciseDates>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwaptionExerciseDates>
-
build
public SwaptionExerciseDates build()
-
dates
public SwaptionExerciseDates.Builder dates(List<SwaptionExerciseDate> dates)
Sets an explicit list of exercise dates.A European swaption has one date in the list. A Bermudan swaption has at least two dates in the list. An American swaption has at exactly two dates in the list, the earliest and latest dates.
- Parameters:
dates
- the new value, not empty- Returns:
- this, for chaining, not null
-
dates
public SwaptionExerciseDates.Builder dates(SwaptionExerciseDate... dates)
Sets thedates
property in the builder from an array of objects.- Parameters:
dates
- the new value, not empty- Returns:
- this, for chaining, not null
-
allDates
public SwaptionExerciseDates.Builder allDates(boolean allDates)
Sets whether all dates are valid dates for swaption exercise between the first and last date.This will be true for an American swaption, and false otherwise.
- Parameters:
allDates
- the new value- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<SwaptionExerciseDates>
-
-