public final class ValuationZoneTimeDefinition extends Object implements org.joda.beans.ImmutableBean, Serializable
This contains ZoneId and a set of LocalTime to create ZonedDateTime from LocalDate.
| Modifier and Type | Class and Description |
|---|---|
static class |
ValuationZoneTimeDefinition.Meta
The meta-bean for
ValuationZoneTimeDefinition. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
LocalTime |
getDefaultLocalTime()
Gets the default local time.
|
ImmutableList<LocalTime> |
getLocalTimes()
Gets the local time.
|
ZoneId |
getZoneId()
Gets the zone ID.
|
int |
hashCode() |
static ValuationZoneTimeDefinition.Meta |
meta()
The meta-bean for
ValuationZoneTimeDefinition. |
ValuationZoneTimeDefinition.Meta |
metaBean() |
static ValuationZoneTimeDefinition |
of(LocalTime defaultLocalTime,
ZoneId zoneId,
LocalTime... localTimes)
Obtains an instance.
|
String |
toString() |
MarketDataBox<ZonedDateTime> |
toZonedDateTime(MarketDataBox<LocalDate> dates)
Creates zoned date time.
|
public static ValuationZoneTimeDefinition of(LocalTime defaultLocalTime, ZoneId zoneId, LocalTime... localTimes)
defaultLocalTime - default local timezoneId - the zone IDlocalTimes - the local timepublic MarketDataBox<ZonedDateTime> toZonedDateTime(MarketDataBox<LocalDate> dates)
If the scenario size of dates is greater than the size of localTimes,
defaultLocalTime is used.
If dates is single value, defaultLocalTime is used.
dates - the local datepublic static ValuationZoneTimeDefinition.Meta meta()
ValuationZoneTimeDefinition.public ValuationZoneTimeDefinition.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic LocalTime getDefaultLocalTime()
The default local time will be used if the input date is not scenario value or
if the scenario size of the input date exceeds the size of localTimes.
public ZoneId getZoneId()
public ImmutableList<LocalTime> getLocalTimes()
The local time in zoneId.
The size is not necessarily the same as the scenario size.
defaultLocalTime will be used if extra LocalTime is required.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.