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
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo(ChronoZonedDateTime<?> other)
boolean
format(DateTimeFormatter formatter)
int
get(TemporalField field)
int
Deprecated.int
int
Deprecated.int
int
getEra()
Deprecated.int
getHour()
int
Deprecated.long
getLong(TemporalField field)
long
Deprecated.int
Deprecated.int
Deprecated.int
int
Deprecated.int
Deprecated.getMonth()
int
Deprecated.int
int
getNano()
int
int
Deprecated.int
Deprecated.int
Deprecated.int
Deprecated.int
getYear()
int
Deprecated.int
Deprecated.getZone()
int
hashCode()
boolean
isAfter(ChronoZonedDateTime<?> other)
boolean
isBefore(ChronoZonedDateTime<?> other)
boolean
isEqual(ChronoZonedDateTime<?> other)
boolean
isSupported(TemporalField field)
boolean
isSupported(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> R
query(TemporalQuery<R> query)
range(TemporalField field)
long
toString()
Deprecated.Deprecated.truncatedTo(TemporalUnit unit)
long
until(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:
equals
in interfaceChronoZonedDateTime<LocalDate>
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceChronoZonedDateTime<LocalDate>
- Overrides:
hashCode
in classObject
-
toString
- Specified by:
toString
in interfaceChronoZonedDateTime<LocalDate>
- Overrides:
toString
in classObject
-
format
- Specified by:
format
in interfaceChronoZonedDateTime<LocalDate>
-
range
- Specified by:
range
in interfaceChronoZonedDateTime<LocalDate>
- Specified by:
range
in interfaceTemporalAccessor
-
get
- Specified by:
get
in interfaceChronoZonedDateTime<LocalDate>
- Specified by:
get
in interfaceTemporalAccessor
-
getLong
- Specified by:
getLong
in interfaceChronoZonedDateTime<LocalDate>
- Specified by:
getLong
in interfaceTemporalAccessor
-
getChronology
- Specified by:
getChronology
in interfaceChronoZonedDateTime<LocalDate>
-
getOffset
- Specified by:
getOffset
in interfaceChronoZonedDateTime<LocalDate>
-
isSupported
- Specified by:
isSupported
in interfaceChronoZonedDateTime<LocalDate>
- Specified by:
isSupported
in interfaceTemporalAccessor
-
isSupported
- Specified by:
isSupported
in interfaceChronoZonedDateTime<LocalDate>
- Specified by:
isSupported
in interfaceTemporal
-
toEpochSecond
public long toEpochSecond()- Specified by:
toEpochSecond
in interfaceChronoZonedDateTime<LocalDate>
-
compareTo
- Specified by:
compareTo
in interfaceChronoZonedDateTime<LocalDate>
- Specified by:
compareTo
in interfaceComparable<ChronoZonedDateTime<?>>
-
isBefore
- Specified by:
isBefore
in interfaceChronoZonedDateTime<LocalDate>
-
isAfter
- Specified by:
isAfter
in interfaceChronoZonedDateTime<LocalDate>
-
isEqual
- Specified by:
isEqual
in interfaceChronoZonedDateTime<LocalDate>
-
toLocalTime
- Specified by:
toLocalTime
in interfaceChronoZonedDateTime<LocalDate>
-
getDayOfMonth
public int getDayOfMonth() -
getDayOfYear
public int getDayOfYear() -
getHour
public int getHour() -
toLocalDate
- Specified by:
toLocalDate
in interfaceChronoZonedDateTime<LocalDate>
-
toLocalDateTime
- Specified by:
toLocalDateTime
in 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:
getZone
in interfaceChronoZonedDateTime<LocalDate>
-
minus
- Specified by:
minus
in interfaceChronoZonedDateTime<LocalDate>
- Specified by:
minus
in interfaceTemporal
-
minus
- Specified by:
minus
in interfaceChronoZonedDateTime<LocalDate>
- Specified by:
minus
in interfaceTemporal
-
query
- Specified by:
query
in interfaceChronoZonedDateTime<LocalDate>
- Specified by:
query
in interfaceTemporalAccessor
-
until
-
minusYears
-
minusMonths
-
minusWeeks
-
minusDays
-
minusHours
-
minusMinutes
-
minusSeconds
-
minusNanos
-
plus
- Specified by:
plus
in interfaceChronoZonedDateTime<LocalDate>
- Specified by:
plus
in interfaceTemporal
-
plus
- Specified by:
plus
in interfaceChronoZonedDateTime<LocalDate>
- Specified by:
plus
in interfaceTemporal
-
plusDays
-
plusHours
-
plusMinutes
-
plusMonths
-
plusNanos
-
plusSeconds
-
plusWeeks
-
plusYears
-
toInstant
- Specified by:
toInstant
in interfaceChronoZonedDateTime<LocalDate>
-
toOffsetDateTime
-
truncatedTo
-
with
- Specified by:
with
in interfaceChronoZonedDateTime<LocalDate>
- Specified by:
with
in interfaceTemporal
-
with
- Specified by:
with
in interfaceChronoZonedDateTime<LocalDate>
- Specified by:
with
in interfaceTemporal
-
withDayOfMonth
-
withDayOfYear
-
withEarlierOffsetAtOverlap
- Specified by:
withEarlierOffsetAtOverlap
in interfaceChronoZonedDateTime<LocalDate>
-
withFixedOffsetZone
-
withHour
-
withLaterOffsetAtOverlap
- Specified by:
withLaterOffsetAtOverlap
in interfaceChronoZonedDateTime<LocalDate>
-
withMinute
-
withMonth
-
withNano
-
withSecond
-
withYear
-
withZoneSameLocal
- Specified by:
withZoneSameLocal
in interfaceChronoZonedDateTime<LocalDate>
-
withZoneSameInstant
- Specified by:
withZoneSameInstant
in 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.
-