Package org.elasticsearch.script
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 Summary
ConstructorDescriptioninstant, zone)
-
Method Summary
Modifier and TypeMethodDescriptionint
<?> other)
boolean
o)
formatter)
int
field)
int
Deprecated.int
int
Deprecated.int
int
getEra()
Deprecated.int
getHour()
int
Deprecated.long
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
<?> other)
boolean
<?> other)
boolean
<?> other)
boolean
field)
boolean
unit)
minus(long amount, unit)
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, unit)
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
<R> query)
field)
long
toString()
format)
Deprecated.format, locale)
Deprecated.unit)
long
temporal, temporalUnit)
adjuster)
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)
zone)
zone)
Methods inherited from class java.lang.
, , , , , , ,
-
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.
-