public class Interval extends Object implements TemporalAmount
Modifier and Type | Field and Description |
---|---|
static long |
MAX_DAY_RANGE |
static long |
MAX_HOUR_RANGE |
static long |
MAX_MIN_RANGE |
static long |
MAX_MONTH_RANGE |
static long |
MAX_NSEC_RANGE |
static long |
MAX_SEC_RANGE |
static long |
MAX_WEEK_RANGE |
static long |
MAX_YEAR_RANGE |
Constructor and Description |
---|
Interval() |
Modifier and Type | Method and Description |
---|---|
Temporal |
addTo(Temporal temporal) |
boolean |
equals(Object o) |
long |
get(TemporalUnit unit) |
Adjust |
getAdjust() |
long |
getDay() |
long |
getHour() |
long |
getMin() |
long |
getMonth() |
long |
getNsec() |
long |
getSec() |
List<TemporalUnit> |
getUnits() |
long |
getWeek() |
long |
getYear() |
int |
hashCode() |
Interval |
setAdjust(Adjust adjust) |
Interval |
setDay(long day) |
Interval |
setHour(long hour) |
Interval |
setMin(long min) |
Interval |
setMonth(long month) |
Interval |
setNsec(long nsec) |
Interval |
setSec(long sec) |
Interval |
setWeek(long week) |
Interval |
setYear(long year) |
Temporal |
subtractFrom(Temporal temporal) |
String |
toString() |
public static final long MAX_NSEC_RANGE
public static final long MAX_YEAR_RANGE
public static final long MAX_MONTH_RANGE
public static final long MAX_DAY_RANGE
public static final long MAX_HOUR_RANGE
public static final long MAX_MIN_RANGE
public static final long MAX_SEC_RANGE
public static final long MAX_WEEK_RANGE
public long get(TemporalUnit unit)
get
in interface TemporalAmount
public List<TemporalUnit> getUnits()
getUnits
in interface TemporalAmount
public Temporal addTo(Temporal temporal)
addTo
in interface TemporalAmount
public Temporal subtractFrom(Temporal temporal)
subtractFrom
in interface TemporalAmount
public long getYear()
public Interval setYear(long year)
public long getMonth()
public Interval setMonth(long month)
public long getWeek()
public Interval setWeek(long week)
public long getDay()
public Interval setDay(long day)
public long getHour()
public Interval setHour(long hour)
public long getMin()
public Interval setMin(long min)
public long getSec()
public Interval setSec(long sec)
public long getNsec()
public Interval setNsec(long nsec)
public Adjust getAdjust()
Copyright © 2025 Picodata. All rights reserved.