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