| Package | Description |
|---|---|
| com.opengamma.strata.basics.schedule |
Basic financial tools for working with date-based schedules.
|
| Modifier and Type | Method and Description |
|---|---|
SchedulePeriod |
SchedulePeriod.Builder.build() |
SchedulePeriod |
Schedule.getFirstPeriod()
Gets the first schedule period.
|
SchedulePeriod |
Schedule.getLastPeriod()
Gets the last schedule period.
|
SchedulePeriod |
Schedule.getPeriod(int index)
Gets a schedule period by index.
|
static SchedulePeriod |
SchedulePeriod.of(LocalDate startDate,
LocalDate endDate)
Obtains an instance from two dates.
|
static SchedulePeriod |
SchedulePeriod.of(LocalDate startDate,
LocalDate endDate,
LocalDate unadjustedStartDate,
LocalDate unadjustedEndDate)
Obtains an instance from the adjusted and unadjusted dates.
|
SchedulePeriod |
SchedulePeriod.toAdjusted(DateAdjuster adjuster)
Converts this period to one where the start and end dates are adjusted using the specified adjuster.
|
SchedulePeriod |
SchedulePeriod.toUnadjusted()
Converts this period to one where the start and end dates are set to the unadjusted dates.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends SchedulePeriod> |
SchedulePeriod.Meta.beanType() |
Optional<SchedulePeriod> |
Schedule.getFinalStub()
Gets the final stub if it exists.
|
Optional<SchedulePeriod> |
Schedule.getInitialStub()
Gets the initial stub if it exists.
|
ImmutableList<SchedulePeriod> |
Schedule.getPeriods()
Gets the schedule periods.
|
ImmutableList<SchedulePeriod> |
Schedule.getRegularPeriods()
Gets the regular schedule periods.
|
Pair<Optional<SchedulePeriod>,Optional<SchedulePeriod>> |
Schedule.getStubs(boolean preferFinal)
Gets the stubs if they exist.
|
Pair<Optional<SchedulePeriod>,Optional<SchedulePeriod>> |
Schedule.getStubs(boolean preferFinal)
Gets the stubs if they exist.
|
org.joda.beans.MetaProperty<ImmutableList<SchedulePeriod>> |
Schedule.Meta.periods()
The meta-property for the
periods property. |
| Modifier and Type | Method and Description |
|---|---|
int |
SchedulePeriod.compareTo(SchedulePeriod other)
Compares this period to another by unadjusted start date, then unadjusted end date.
|
static Schedule |
Schedule.ofTerm(SchedulePeriod period)
Obtains a 'Term' instance based on a single period.
|
Schedule.Builder |
Schedule.Builder.periods(SchedulePeriod... periods)
Sets the
periods property in the builder
from an array of objects. |
| Modifier and Type | Method and Description |
|---|---|
Schedule.Builder |
Schedule.Builder.periods(List<SchedulePeriod> periods)
Sets the schedule periods.
|
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.