Class Duration
java.lang.Object
ch.tocco.nice2.toolbox.api.duration.Duration
- All Implemented Interfaces:
Cloneable
Deprecated.
Time amount holder class; combination of
TimeUnit
+ int to form an amount.
Use the getters to feed all the Java-like methods that want the values as 2 separate params.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Duration
Deprecated.
-
-
Method Details
-
getAmount
public long getAmount()Deprecated. -
getAmount
Deprecated. -
getUnit
Deprecated. -
toString
Deprecated. -
clone
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-
Duration
orPeriod
if you absolutely need to work with different time units