public class TimeValue extends Object implements Serializable, Streamable
Constructor and Description |
---|
TimeValue(long millis) |
TimeValue(long duration,
TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
long |
days() |
double |
daysFrac() |
boolean |
equals(Object o) |
String |
format() |
String |
format(org.joda.time.PeriodType type) |
long |
getDays() |
double |
getDaysFrac() |
long |
getHours() |
double |
getHoursFrac() |
long |
getMicros() |
double |
getMicrosFrac() |
long |
getMillis() |
double |
getMillisFrac() |
long |
getMinutes() |
double |
getMinutesFrac() |
long |
getNanos() |
long |
getSeconds() |
double |
getSecondsFrac() |
int |
hashCode() |
long |
hours() |
double |
hoursFrac() |
long |
micros() |
double |
microsFrac() |
long |
millis() |
double |
millisFrac() |
long |
minutes() |
double |
minutesFrac() |
long |
nanos() |
static TimeValue |
parseTimeValue(String sValue,
TimeValue defaultValue) |
void |
readFrom(StreamInput in)
serialization converts TimeValue internally to NANOSECONDS
|
static TimeValue |
readTimeValue(StreamInput in) |
long |
seconds() |
double |
secondsFrac() |
static TimeValue |
timeValueHours(long hours) |
static TimeValue |
timeValueMillis(long millis) |
static TimeValue |
timeValueMinutes(long minutes) |
static TimeValue |
timeValueNanos(long nanos) |
static TimeValue |
timeValueSeconds(long seconds) |
String |
toString() |
void |
writeTo(StreamOutput out) |
public TimeValue(long millis)
public TimeValue(long duration, TimeUnit timeUnit)
public static TimeValue timeValueNanos(long nanos)
public static TimeValue timeValueMillis(long millis)
public static TimeValue timeValueSeconds(long seconds)
public static TimeValue timeValueMinutes(long minutes)
public static TimeValue timeValueHours(long hours)
public long nanos()
public long getNanos()
public long micros()
public long getMicros()
public long millis()
public long getMillis()
public long seconds()
public long getSeconds()
public long minutes()
public long getMinutes()
public long hours()
public long getHours()
public long days()
public long getDays()
public double microsFrac()
public double getMicrosFrac()
public double millisFrac()
public double getMillisFrac()
public double secondsFrac()
public double getSecondsFrac()
public double minutesFrac()
public double getMinutesFrac()
public double hoursFrac()
public double getHoursFrac()
public double daysFrac()
public double getDaysFrac()
public String format()
public String format(org.joda.time.PeriodType type)
public static TimeValue readTimeValue(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2015. All rights reserved.