public class InternalTime extends Object
| Modifier and Type | Field and Description |
|---|---|
private int |
hours |
private int |
minutes |
private int |
nanos |
private boolean |
negative |
private int |
scale |
private int |
seconds |
| Constructor and Description |
|---|
InternalTime()
Constructs a zero time
|
InternalTime(int hours,
int minutes,
int seconds,
int nanos,
int scale) |
| Modifier and Type | Method and Description |
|---|---|
static InternalTime |
from(Calendar x,
int nanos) |
static InternalTime |
from(Duration x) |
static InternalTime |
from(LocalDateTime x) |
static InternalTime |
from(LocalTime x) |
static InternalTime |
from(OffsetTime x) |
int |
getHours() |
int |
getMinutes() |
int |
getNanos() |
int |
getScale() |
int |
getSeconds() |
boolean |
isNegative() |
boolean |
isZero() |
void |
setHours(int hours) |
void |
setMinutes(int minutes) |
void |
setNanos(int nanos) |
void |
setNegative(boolean negative) |
void |
setScale(int scale) |
void |
setSeconds(int seconds) |
String |
toString() |
private boolean negative
private int hours
private int minutes
private int seconds
private int nanos
private int scale
public InternalTime()
public InternalTime(int hours,
int minutes,
int seconds,
int nanos,
int scale)
public static InternalTime from(LocalTime x)
public static InternalTime from(LocalDateTime x)
public static InternalTime from(OffsetTime x)
public static InternalTime from(Duration x)
public static InternalTime from(Calendar x, int nanos)
public boolean isNegative()
public void setNegative(boolean negative)
public int getHours()
public void setHours(int hours)
public int getMinutes()
public void setMinutes(int minutes)
public int getSeconds()
public void setSeconds(int seconds)
public int getNanos()
public void setNanos(int nanos)
public boolean isZero()
public int getScale()
public void setScale(int scale)