@API.Public public final class OInterval extends Object implements Serializable
| Constructor and Description |
|---|
OInterval(int years,
int months,
int days,
int seconds,
int milliseconds) |
OInterval(long milliseconds) |
OInterval(String iso8601DurationPattern) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getDays() |
int |
getMilliseconds() |
int |
getMonths() |
int |
getSeconds() |
long |
getTimeInMillis()
Returns the value of this duration in milliseconds computed from
individual fields.
|
int |
getYears() |
int |
hashCode() |
public OInterval(long milliseconds)
public OInterval(String iso8601DurationPattern)
public OInterval(int years,
int months,
int days,
int seconds,
int milliseconds)
public int getYears()
Interval as an
int or 0 if not set.public int getMonths()
Interval as an
int or 0 if not set.public int getDays()
Interval as an
int or 0 if not set.public int getSeconds()
Interval as an
int or 0 if not set.public int getMilliseconds()
Interval as
an int or 0 if not set.public long getTimeInMillis()
Copyright © 2015–2019 MapR Technologies, Inc.. All rights reserved.