Package org.elasticsearch.script
Class JodaCompatibleZonedDateTime
java.lang.Object
org.elasticsearch.script.JodaCompatibleZonedDateTime
- All Implemented Interfaces:
Comparable<ChronoZonedDateTime<?>>,ChronoZonedDateTime<LocalDate>,Temporal,TemporalAccessor
public class JodaCompatibleZonedDateTime
extends Object
implements Comparable<ChronoZonedDateTime<?>>, ChronoZonedDateTime<LocalDate>, Temporal, TemporalAccessor
A wrapper around ZonedDateTime that exposes joda methods for backcompat.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ChronoZonedDateTime<?> other) booleanformat(DateTimeFormatter formatter) intget(TemporalField field) intDeprecated.intintDeprecated.intintgetEra()Deprecated.intgetHour()intDeprecated.longgetLong(TemporalField field) longDeprecated.intDeprecated.intDeprecated.intintDeprecated.intDeprecated.getMonth()intDeprecated.intintgetNano()intintDeprecated.intDeprecated.intDeprecated.intDeprecated.intgetYear()intDeprecated.intDeprecated.getZone()inthashCode()booleanisAfter(ChronoZonedDateTime<?> other) booleanisBefore(ChronoZonedDateTime<?> other) booleanisEqual(ChronoZonedDateTime<?> other) booleanisSupported(TemporalField field) booleanisSupported(TemporalUnit unit) minus(long amount, TemporalUnit unit) minus(TemporalAmount delta) minusDays(long amount) minusHours(long amount) minusMinutes(long amount) minusMonths(long amount) minusNanos(long amount) minusSeconds(long amount) minusWeeks(long amount) minusYears(long amount) plus(long amount, TemporalUnit unit) plus(TemporalAmount amount) plusDays(long amount) plusHours(long amount) plusMinutes(long amount) plusMonths(long amount) plusNanos(long amount) plusSeconds(long amount) plusWeeks(long amount) plusYears(long amount) <R> Rquery(TemporalQuery<R> query) range(TemporalField field) longtoString()Deprecated.Deprecated.truncatedTo(TemporalUnit unit) longuntil(Temporal temporal, TemporalUnit temporalUnit) with(TemporalAdjuster adjuster) with(TemporalField field, long newValue) withDayOfMonth(int value) withDayOfYear(int value) withHour(int value) withMinute(int value) withMonth(int value) withNano(int value) withSecond(int value) withYear(int value) withZoneSameInstant(ZoneId zone) withZoneSameLocal(ZoneId zone)
-
Constructor Details
-
JodaCompatibleZonedDateTime
-
-
Method Details
-
getZonedDateTime
-
equals
- Specified by:
equalsin interfaceChronoZonedDateTime<LocalDate>- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceChronoZonedDateTime<LocalDate>- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceChronoZonedDateTime<LocalDate>- Overrides:
toStringin classObject
-
format
- Specified by:
formatin interfaceChronoZonedDateTime<LocalDate>
-
range
- Specified by:
rangein interfaceChronoZonedDateTime<LocalDate>- Specified by:
rangein interfaceTemporalAccessor
-
get
- Specified by:
getin interfaceChronoZonedDateTime<LocalDate>- Specified by:
getin interfaceTemporalAccessor
-
getLong
- Specified by:
getLongin interfaceChronoZonedDateTime<LocalDate>- Specified by:
getLongin interfaceTemporalAccessor
-
getChronology
- Specified by:
getChronologyin interfaceChronoZonedDateTime<LocalDate>
-
getOffset
- Specified by:
getOffsetin interfaceChronoZonedDateTime<LocalDate>
-
isSupported
- Specified by:
isSupportedin interfaceChronoZonedDateTime<LocalDate>- Specified by:
isSupportedin interfaceTemporalAccessor
-
isSupported
- Specified by:
isSupportedin interfaceChronoZonedDateTime<LocalDate>- Specified by:
isSupportedin interfaceTemporal
-
toEpochSecond
public long toEpochSecond()- Specified by:
toEpochSecondin interfaceChronoZonedDateTime<LocalDate>
-
compareTo
- Specified by:
compareToin interfaceChronoZonedDateTime<LocalDate>- Specified by:
compareToin interfaceComparable<ChronoZonedDateTime<?>>
-
isBefore
- Specified by:
isBeforein interfaceChronoZonedDateTime<LocalDate>
-
isAfter
- Specified by:
isAfterin interfaceChronoZonedDateTime<LocalDate>
-
isEqual
- Specified by:
isEqualin interfaceChronoZonedDateTime<LocalDate>
-
toLocalTime
- Specified by:
toLocalTimein interfaceChronoZonedDateTime<LocalDate>
-
getDayOfMonth
public int getDayOfMonth() -
getDayOfYear
public int getDayOfYear() -
getHour
public int getHour() -
toLocalDate
- Specified by:
toLocalDatein interfaceChronoZonedDateTime<LocalDate>
-
toLocalDateTime
- Specified by:
toLocalDateTimein interfaceChronoZonedDateTime<LocalDate>
-
getMinute
public int getMinute() -
getMonth
-
getMonthValue
public int getMonthValue() -
getNano
public int getNano() -
getSecond
public int getSecond() -
getYear
public int getYear() -
getZone
- Specified by:
getZonein interfaceChronoZonedDateTime<LocalDate>
-
minus
- Specified by:
minusin interfaceChronoZonedDateTime<LocalDate>- Specified by:
minusin interfaceTemporal
-
minus
- Specified by:
minusin interfaceChronoZonedDateTime<LocalDate>- Specified by:
minusin interfaceTemporal
-
query
- Specified by:
queryin interfaceChronoZonedDateTime<LocalDate>- Specified by:
queryin interfaceTemporalAccessor
-
until
-
minusYears
-
minusMonths
-
minusWeeks
-
minusDays
-
minusHours
-
minusMinutes
-
minusSeconds
-
minusNanos
-
plus
- Specified by:
plusin interfaceChronoZonedDateTime<LocalDate>- Specified by:
plusin interfaceTemporal
-
plus
- Specified by:
plusin interfaceChronoZonedDateTime<LocalDate>- Specified by:
plusin interfaceTemporal
-
plusDays
-
plusHours
-
plusMinutes
-
plusMonths
-
plusNanos
-
plusSeconds
-
plusWeeks
-
plusYears
-
toInstant
- Specified by:
toInstantin interfaceChronoZonedDateTime<LocalDate>
-
toOffsetDateTime
-
truncatedTo
-
with
- Specified by:
within interfaceChronoZonedDateTime<LocalDate>- Specified by:
within interfaceTemporal
-
with
- Specified by:
within interfaceChronoZonedDateTime<LocalDate>- Specified by:
within interfaceTemporal
-
withDayOfMonth
-
withDayOfYear
-
withEarlierOffsetAtOverlap
- Specified by:
withEarlierOffsetAtOverlapin interfaceChronoZonedDateTime<LocalDate>
-
withFixedOffsetZone
-
withHour
-
withLaterOffsetAtOverlap
- Specified by:
withLaterOffsetAtOverlapin interfaceChronoZonedDateTime<LocalDate>
-
withMinute
-
withMonth
-
withNano
-
withSecond
-
withYear
-
withZoneSameLocal
- Specified by:
withZoneSameLocalin interfaceChronoZonedDateTime<LocalDate>
-
withZoneSameInstant
- Specified by:
withZoneSameInstantin interfaceChronoZonedDateTime<LocalDate>
-
getMillis
Deprecated. -
getCenturyOfEra
Deprecated. -
getEra
Deprecated. -
getHourOfDay
Deprecated. -
getMillisOfDay
Deprecated. -
getMillisOfSecond
Deprecated. -
getMinuteOfDay
Deprecated. -
getMinuteOfHour
Deprecated. -
getMonthOfYear
Deprecated. -
getSecondOfDay
Deprecated. -
getSecondOfMinute
Deprecated. -
getWeekOfWeekyear
Deprecated. -
getWeekyear
Deprecated. -
getYearOfCentury
Deprecated. -
getYearOfEra
Deprecated. -
toString
Deprecated. -
toString
Deprecated. -
getDayOfWeekEnum
-
getDayOfWeek
Deprecated.
-