public final class DateValue extends TemporalValue<LocalDate,DateValue>
TemporalValue.TemporalFields| Modifier and Type | Field and Description |
|---|---|
static DateValue |
MAX_VALUE |
static DateValue |
MIN_VALUE |
| Modifier and Type | Method and Description |
|---|---|
DateValue |
add(DurationValue duration) |
static DateValue |
build(MapValue map,
Supplier<ZoneId> defaultZone) |
protected int |
computeHash() |
static DateValue |
date(int year,
int month,
int day) |
static DateValue |
date(LocalDate value) |
static DateValue |
epochDate(long epochDay) |
static LocalDate |
epochDateRaw(long epochDay) |
boolean |
equals(boolean[] x) |
boolean |
equals(byte[] x) |
boolean |
equals(char[] x) |
boolean |
equals(double[] x) |
boolean |
equals(DurationValue[] x) |
boolean |
equals(float[] x) |
boolean |
equals(int[] x) |
boolean |
equals(LocalDate[] x) |
boolean |
equals(LocalDateTime[] x) |
boolean |
equals(LocalTime[] x) |
boolean |
equals(long[] x) |
boolean |
equals(OffsetTime[] x) |
boolean |
equals(short[] x) |
boolean |
equals(String[] x) |
boolean |
equals(Value other) |
boolean |
equals(ZonedDateTime[] x) |
String |
getTypeName() |
<T> T |
map(ValueMapper<T> mapper) |
static DateValue |
now(Clock clock) |
static DateValue |
now(Clock clock,
String timezone) |
static DateValue |
now(Clock clock,
Supplier<ZoneId> defaultZone) |
static DateValue |
ordinalDate(int year,
int dayOfYear) |
static DateValue |
parse(CharSequence text) |
static DateValue |
parse(TextValue text) |
String |
prettyPrint()
Returns a json-like string representation of the current value.
|
static DateValue |
quarterDate(int year,
int quarter,
int dayOfQuarter) |
static DateValue |
select(AnyValue from,
Supplier<ZoneId> defaultZone) |
DateValue |
sub(DurationValue duration) |
boolean |
supportsTimeZone() |
static DateValue |
truncate(TemporalUnit unit,
TemporalValue input,
MapValue fields,
Supplier<ZoneId> defaultZone) |
ValueGroup |
valueGroup() |
static DateValue |
weekDate(int year,
int week,
int dayOfWeek) |
<E extends Exception> |
writeTo(ValueWriter<E> writer) |
asObjectCopy, equals, equals, equals, equals, equals, get, get, getLong, isSupported, isSupported, minus, minus, numberType, parseHeaderInformation, plus, plus, query, range, toString, until, updateHash, with, withasObject, eq, hashCode64, isNaN, parseHeaderInformation, ternaryEquals, writeToequals, hashCode, isSequenceValuepublic static final DateValue MIN_VALUE
public static final DateValue MAX_VALUE
public static DateValue date(int year, int month, int day)
public static DateValue weekDate(int year, int week, int dayOfWeek)
public static DateValue quarterDate(int year, int quarter, int dayOfQuarter)
public static DateValue ordinalDate(int year, int dayOfYear)
public static DateValue epochDate(long epochDay)
public static LocalDate epochDateRaw(long epochDay)
public static DateValue parse(CharSequence text)
public static DateValue truncate(TemporalUnit unit, TemporalValue input, MapValue fields, Supplier<ZoneId> defaultZone)
public String getTypeName()
getTypeName in class AnyValuepublic boolean supportsTimeZone()
public <E extends Exception> void writeTo(ValueWriter<E> writer) throws E extends Exception
public String prettyPrint()
ValueprettyPrint in class Valuepublic ValueGroup valueGroup()
valueGroup in class Valueprotected int computeHash()
computeHash in class AnyValuepublic <T> T map(ValueMapper<T> mapper)
public DateValue add(DurationValue duration)
add in class TemporalValue<LocalDate,DateValue>public DateValue sub(DurationValue duration)
sub in class TemporalValue<LocalDate,DateValue>public final boolean equals(ZonedDateTime[] x)
public final boolean equals(DurationValue[] x)
public final boolean equals(LocalDateTime[] x)
public final boolean equals(OffsetTime[] x)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.