public class WorkDuration extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
WorkDuration.UNIT |
Modifier and Type | Method and Description |
---|---|
WorkDuration |
add(WorkDuration with) |
static WorkDuration |
create(int days,
int hours,
int minutes,
int hoursInDay) |
static WorkDuration |
createFromValueAndUnit(int value,
WorkDuration.UNIT unit,
int hoursInDay) |
int |
days() |
boolean |
equals(Object o) |
int |
hashCode() |
int |
hours() |
int |
minutes() |
WorkDuration |
multiply(int factor) |
WorkDuration |
subtract(WorkDuration with) |
long |
toLong()
Return the duration using the following format DDHHMM, where DD is the number of days, HH is the number of months, and MM the number of minutes.
|
long |
toMinutes() |
String |
toString() |
double |
toWorkingDays()
Return the duration in number of working days.
|
public static WorkDuration create(int days, int hours, int minutes, int hoursInDay)
public static WorkDuration createFromValueAndUnit(int value, WorkDuration.UNIT unit, int hoursInDay)
public double toWorkingDays()
public long toLong()
public long toMinutes()
public WorkDuration add(@Nullable WorkDuration with)
public WorkDuration subtract(@Nullable WorkDuration with)
public WorkDuration multiply(int factor)
public int days()
public int hours()
public int minutes()
Copyright © 2009–2015 SonarSource. All rights reserved.