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