Package io.tech1.framework.domain.time
Class TimeAmount
- java.lang.Object
-
- io.tech1.framework.domain.time.TimeAmount
-
public class TimeAmount extends Object
-
-
Constructor Summary
Constructors Constructor Description TimeAmount(long amount, ChronoUnit unit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)longgetAmount()ChronoUnitgetUnit()inthashCode()static TimeAmountof(long amount, ChronoUnit unit)longtoMillis()longtoSeconds()StringtoString()
-
-
-
Constructor Detail
-
TimeAmount
public TimeAmount(long amount, ChronoUnit unit)
-
-
Method Detail
-
of
public static TimeAmount of(long amount, ChronoUnit unit)
-
toSeconds
public long toSeconds()
-
toMillis
public long toMillis()
-
getAmount
public long getAmount()
-
getUnit
public ChronoUnit getUnit()
-
canEqual
protected boolean canEqual(Object other)
-
-