public class TimeSpan extends Object implements Comparable<TimeSpan>
Modifier and Type | Field and Description |
---|---|
static String |
ISO_DATETIME_FORMAT
The ISO format for a date with time (until seconds).
|
Constructor and Description |
---|
TimeSpan() |
TimeSpan(int timeSpan) |
TimeSpan(int days,
int minutes,
int seconds) |
TimeSpan(TimeSpan ts) |
Modifier and Type | Method and Description |
---|---|
void |
addDays(int days) |
void |
addHours(int hours) |
void |
addMinutes(int minutes) |
void |
addSeconds(int seconds) |
int |
compareTo(TimeSpan o) |
boolean |
equals(Object o) |
int |
getDays() |
int |
getHours() |
int |
getMinutes() |
int |
getSeconds() |
int |
getTimeSpan() |
int |
hashCode() |
boolean |
isPositive() |
void |
setDays(int days) |
void |
setHours(int hours) |
void |
setMinutes(int minutes) |
void |
setSeconds(int seconds) |
void |
setTimeSpan(int timeSpan) |
String |
toString() |
public static final String ISO_DATETIME_FORMAT
DateHelper.ISO_DATETIME_FORMAT
, I had to copy this as DateHelper is in fw-model
and not fw-interface!public TimeSpan()
public TimeSpan(TimeSpan ts)
public TimeSpan(int timeSpan)
public TimeSpan(int days, int minutes, int seconds)
public int getTimeSpan()
public void setTimeSpan(int timeSpan)
public int getDays()
public int getHours()
public int getMinutes()
public int getSeconds()
public void addDays(int days)
public void addHours(int hours)
public void addMinutes(int minutes)
public void addSeconds(int seconds)
public void setDays(int days)
public void setHours(int hours)
public void setMinutes(int minutes)
public void setSeconds(int seconds)
public boolean isPositive()
public int compareTo(TimeSpan o)
compareTo
in interface Comparable<TimeSpan>
Copyright © 2021. All rights reserved.