- All Superinterfaces:
com.google.gwt.user.client.rpc.IsSerializable
, Serializable
public interface DurationValue
extends com.google.gwt.user.client.rpc.IsSerializable, Serializable
- Since:
- 3.9.0
-
Method Summary
This method does not call
normalize()
, so you should call it at the end of computation.
float
boolean
boolean
This method does not call
normalize()
, so you should call it at the end of computation.
This method does not call
normalize()
, so you should call it at the end of computation.
-
Method Details
-
add
This method does not call
normalize()
, so you should call it at the end of computation.
- Returns:
- new instance with the result of adding the values.
-
sub
This method does not call
normalize()
, so you should call it at the end of computation.
- Returns:
- new instance with the result subtracting the given value from this value
-
negate
This method does not call
normalize()
, so you should call it at the end of computation.
- Returns:
- new instance with the negated value
-
normalize
- Returns:
- new instance with the normalized value, which means that the hours part will no be bigger than one day
-
-
isNegative
boolean isNegative()
-
asDays
float asDays()
- Returns:
- duration in days (including fractions and negative sign)
- Since:
- 3.19.2
-