public final class TimeValue extends TemporalValue<OffsetTime,TimeValue>
TemporalValue.TemporalFields| Modifier and Type | Field and Description |
|---|---|
static TimeValue |
MAX_VALUE |
static TimeValue |
MIN_VALUE |
| Modifier and Type | Method and Description |
|---|---|
TimeValue |
add(DurationValue duration) |
static TimeValue |
build(MapValue map,
Supplier<ZoneId> defaultZone) |
protected int |
computeHash() |
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 TimeValue |
now(Clock clock) |
static TimeValue |
now(Clock clock,
String timezone) |
static TimeValue |
now(Clock clock,
Supplier<ZoneId> defaultZone) |
static TimeValue |
parse(CharSequence text,
Supplier<ZoneId> defaultZone) |
static TimeValue |
parse(CharSequence text,
Supplier<ZoneId> defaultZone,
CSVHeaderInformation fieldsFromHeader) |
static TimeValue |
parse(TextValue text,
Supplier<ZoneId> defaultZone) |
String |
prettyPrint()
Returns a json-like string representation of the current value.
|
static TimeValue |
select(AnyValue from,
Supplier<ZoneId> defaultZone) |
TimeValue |
sub(DurationValue duration) |
boolean |
supportsTimeZone() |
static TimeValue |
time(int hour,
int minute,
int second,
int nanosOfSecond,
String offset) |
static TimeValue |
time(int hour,
int minute,
int second,
int nanosOfSecond,
ZoneOffset offset) |
static TimeValue |
time(long nanosOfDayUTC,
ZoneOffset offset) |
static TimeValue |
time(OffsetTime time) |
static OffsetTime |
timeRaw(long nanosOfDayUTC,
ZoneOffset offset) |
static TimeValue |
truncate(TemporalUnit unit,
TemporalValue input,
MapValue fields,
Supplier<ZoneId> defaultZone) |
ValueGroup |
valueGroup() |
<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 TimeValue MIN_VALUE
public static final TimeValue MAX_VALUE
public static TimeValue time(OffsetTime time)
public static TimeValue time(int hour, int minute, int second, int nanosOfSecond, String offset)
public static TimeValue time(int hour, int minute, int second, int nanosOfSecond, ZoneOffset offset)
public static TimeValue time(long nanosOfDayUTC, ZoneOffset offset)
public static OffsetTime timeRaw(long nanosOfDayUTC, ZoneOffset offset)
public String getTypeName()
getTypeName in class AnyValuepublic static TimeValue parse(CharSequence text, Supplier<ZoneId> defaultZone, CSVHeaderInformation fieldsFromHeader)
public static TimeValue parse(CharSequence text, Supplier<ZoneId> defaultZone)
public static TimeValue truncate(TemporalUnit unit, TemporalValue input, MapValue fields, Supplier<ZoneId> defaultZone)
public 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 TimeValue add(DurationValue duration)
add in class TemporalValue<OffsetTime,TimeValue>public TimeValue sub(DurationValue duration)
sub in class TemporalValue<OffsetTime,TimeValue>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.