Package org.apache.commons.net.ftp
Class DurationUtils
java.lang.Object
org.apache.commons.net.ftp.DurationUtils
Temporary until Commons Lang 3.12.0.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static boolean
isPositive
(Duration duration) Tests whether the given Duration is positive (>0).(package private) static int
toMillisInt
(Duration duration) (package private) static Duration
zeroIfNull
(Duration controlIdle)
-
Constructor Details
-
DurationUtils
DurationUtils()
-
-
Method Details
-
isPositive
Tests whether the given Duration is positive (>0).- Parameters:
duration
- the value to test- Returns:
- whether the given Duration is positive (>0).
-
toMillisInt
-
zeroIfNull
-