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