Package org.drasyl.util
Class DurationUtil
java.lang.Object
org.drasyl.util.DurationUtil
Utility class for operations on
Durations.-
Method Summary
-
Method Details
-
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
-
min
Returns the smaller of twoDurationvalues.- Parameters:
a- an argument.b- another argument.- Returns:
- the smaller of
aandb. - Throws:
NullPointerException- if one or both values arenull
-