Package org.drasyl.util
Class DurationUtil
- java.lang.Object
-
- org.drasyl.util.DurationUtil
-
-
Method Detail
-
max
public static Duration max(Duration a, Duration b)
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
public static Duration min(Duration a, Duration b)
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
-
-