Class JodaCompatibleZonedDateTime

org.elasticsearch.script.JodaCompatibleZonedDateTime
All Implemented Interfaces:
<<?>>, <>, ,

public class JodaCompatibleZonedDateTime extends implements <<?>>, <>, ,
A wrapper around ZonedDateTime that exposes joda methods for backcompat.
  • Constructor Details

    • JodaCompatibleZonedDateTime

      public JodaCompatibleZonedDateTime( instant,  zone)
  • Method Details

    • getZonedDateTime

      public  getZonedDateTime()
    • equals

      public boolean equals( o)
      Specified by:
       in interface <>
      Overrides:
       in class 
    • hashCode

      public int hashCode()
      Specified by:
       in interface <>
      Overrides:
       in class 
    • toString

      public  toString()
      Specified by:
       in interface <>
      Overrides:
       in class 
    • format

      public  format( formatter)
      Specified by:
       in interface <>
    • range

      public  range( field)
      Specified by:
       in interface <>
      Specified by:
       in interface 
    • get

      public int get( field)
      Specified by:
       in interface <>
      Specified by:
       in interface 
    • getLong

      public long getLong( field)
      Specified by:
       in interface <>
      Specified by:
       in interface 
    • getChronology

      public  getChronology()
      Specified by:
       in interface <>
    • getOffset

      public  getOffset()
      Specified by:
       in interface <>
    • isSupported

      public boolean isSupported( field)
      Specified by:
       in interface <>
      Specified by:
       in interface 
    • isSupported

      public boolean isSupported( unit)
      Specified by:
       in interface <>
      Specified by:
       in interface 
    • toEpochSecond

      public long toEpochSecond()
      Specified by:
       in interface <>
    • compareTo

      public int compareTo(<?> other)
      Specified by:
       in interface <>
      Specified by:
       in interface <<?>>
    • isBefore

      public boolean isBefore(<?> other)
      Specified by:
       in interface <>
    • isAfter

      public boolean isAfter(<?> other)
      Specified by:
       in interface <>
    • isEqual

      public boolean isEqual(<?> other)
      Specified by:
       in interface <>
    • toLocalTime

      public  toLocalTime()
      Specified by:
       in interface <>
    • getDayOfMonth

      public int getDayOfMonth()
    • getDayOfYear

      public int getDayOfYear()
    • getHour

      public int getHour()
    • toLocalDate

      public  toLocalDate()
      Specified by:
       in interface <>
    • toLocalDateTime

      public  toLocalDateTime()
      Specified by:
       in interface <>
    • getMinute

      public int getMinute()
    • getMonth

      public  getMonth()
    • getMonthValue

      public int getMonthValue()
    • getNano

      public int getNano()
    • getSecond

      public int getSecond()
    • getYear

      public int getYear()
    • getZone

      public  getZone()
      Specified by:
       in interface <>
    • minus

      public  minus( delta)
      Specified by:
       in interface <>
      Specified by:
       in interface 
    • minus

      public  minus(long amount,  unit)
      Specified by:
       in interface <>
      Specified by:
       in interface 
    • query

      public <R> R query(<R> query)
      Specified by:
       in interface <>
      Specified by:
       in interface 
    • until

      public long until( temporal,  temporalUnit)
      Specified by:
       in interface 
    • minusYears

      public  minusYears(long amount)
    • minusMonths

      public  minusMonths(long amount)
    • minusWeeks

      public  minusWeeks(long amount)
    • minusDays

      public  minusDays(long amount)
    • minusHours

      public  minusHours(long amount)
    • minusMinutes

      public  minusMinutes(long amount)
    • minusSeconds

      public  minusSeconds(long amount)
    • minusNanos

      public  minusNanos(long amount)
    • plus

      public  plus( amount)
      Specified by:
       in interface <>
      Specified by:
       in interface 
    • plus

      public  plus(long amount,  unit)
      Specified by:
       in interface <>
      Specified by:
       in interface 
    • plusDays

      public  plusDays(long amount)
    • plusHours

      public  plusHours(long amount)
    • plusMinutes

      public  plusMinutes(long amount)
    • plusMonths

      public  plusMonths(long amount)
    • plusNanos

      public  plusNanos(long amount)
    • plusSeconds

      public  plusSeconds(long amount)
    • plusWeeks

      public  plusWeeks(long amount)
    • plusYears

      public  plusYears(long amount)
    • toInstant

      public  toInstant()
      Specified by:
       in interface <>
    • toOffsetDateTime

      public  toOffsetDateTime()
    • truncatedTo

      public  truncatedTo( unit)
    • with

      public  with( adjuster)
      Specified by:
       in interface <>
      Specified by:
       in interface 
    • with

      public  with( field, long newValue)
      Specified by:
       in interface <>
      Specified by:
       in interface 
    • withDayOfMonth

      public  withDayOfMonth(int value)
    • withDayOfYear

      public  withDayOfYear(int value)
    • withEarlierOffsetAtOverlap

      public  withEarlierOffsetAtOverlap()
      Specified by:
       in interface <>
    • withFixedOffsetZone

      public  withFixedOffsetZone()
    • withHour

      public  withHour(int value)
    • withLaterOffsetAtOverlap

      public  withLaterOffsetAtOverlap()
      Specified by:
       in interface <>
    • withMinute

      public  withMinute(int value)
    • withMonth

      public  withMonth(int value)
    • withNano

      public  withNano(int value)
    • withSecond

      public  withSecond(int value)
    • withYear

      public  withYear(int value)
    • withZoneSameLocal

      public  withZoneSameLocal( zone)
      Specified by:
       in interface <>
    • withZoneSameInstant

      public  withZoneSameInstant( zone)
      Specified by:
       in interface <>
    • getMillis

      public long getMillis()
      Deprecated.
    • getCenturyOfEra

      public int getCenturyOfEra()
      Deprecated.
    • getEra

      public int getEra()
      Deprecated.
    • getHourOfDay

      public int getHourOfDay()
      Deprecated.
    • getMillisOfDay

      public int getMillisOfDay()
      Deprecated.
    • getMillisOfSecond

      public int getMillisOfSecond()
      Deprecated.
    • getMinuteOfDay

      public int getMinuteOfDay()
      Deprecated.
    • getMinuteOfHour

      public int getMinuteOfHour()
      Deprecated.
    • getMonthOfYear

      public int getMonthOfYear()
      Deprecated.
    • getSecondOfDay

      public int getSecondOfDay()
      Deprecated.
    • getSecondOfMinute

      public int getSecondOfMinute()
      Deprecated.
    • getWeekOfWeekyear

      public int getWeekOfWeekyear()
      Deprecated.
    • getWeekyear

      public int getWeekyear()
      Deprecated.
    • getYearOfCentury

      public int getYearOfCentury()
      Deprecated.
    • getYearOfEra

      public int getYearOfEra()
      Deprecated.
    • toString

      public  toString( format)
      Deprecated.
    • toString

      public  toString( format,  locale)
      Deprecated.
    • getDayOfWeekEnum

      public  getDayOfWeekEnum()
    • getDayOfWeek

      public int getDayOfWeek()
      Deprecated.