Package org.drasyl.plugin.groups.util
Class DurationUtil
java.lang.Object
org.drasyl.plugin.groups.util.DurationUtil
-
Method Summary
-
Method Details
-
normalize
Normalize the givendurationto a minimum of 1m.- Parameters:
duration- the duration- Returns:
- the normalized duration
-
max
Returns the greater of twoDurationvalues.- Parameters:
a- an argument.b- another argument.- Returns:
- the larger of
aandb. - Throws:
NullPointerException- if one or both values arenull
-