public static final class ValueSchedule.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ValueSchedule>
ValueSchedule
.Modifier and Type | Method and Description |
---|---|
ValueSchedule |
build() |
Object |
get(String propertyName) |
ValueSchedule.Builder |
initialValue(double initialValue)
Sets the initial value.
|
ValueSchedule.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ValueSchedule.Builder |
set(String propertyName,
Object newValue) |
ValueSchedule.Builder |
steps(List<ValueStep> steps)
Sets the steps defining the change in the value.
|
ValueSchedule.Builder |
steps(ValueStep... steps)
Sets the
steps property in the builder
from an array of objects. |
ValueSchedule.Builder |
stepSequence(ValueStepSequence stepSequence)
Sets the sequence of steps changing the value.
|
String |
toString() |
public Object get(String propertyName)
get
in interface org.joda.beans.BeanBuilder<ValueSchedule>
get
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ValueSchedule>
public ValueSchedule.Builder set(String propertyName, Object newValue)
public ValueSchedule.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set
in interface org.joda.beans.BeanBuilder<ValueSchedule>
set
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ValueSchedule>
public ValueSchedule build()
public ValueSchedule.Builder initialValue(double initialValue)
This is used for the lifetime of the trade unless specifically varied.
initialValue
- the new valuepublic ValueSchedule.Builder steps(List<ValueStep> steps)
Each step consists of a key locating the date of the change and the adjustment that occurs.
steps
- the new value, not nullpublic ValueSchedule.Builder steps(ValueStep... steps)
steps
property in the builder
from an array of objects.steps
- the new value, not nullpublic ValueSchedule.Builder stepSequence(ValueStepSequence stepSequence)
This allows a regular pattern of steps to be encoded. All step dates must be unique, thus the list of steps must not contain any date implied by this sequence.
stepSequence
- the new valuepublic String toString()
toString
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ValueSchedule>
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.