Class DurationUtils

java.lang.Object
org.apache.commons.net.ftp.DurationUtils

class DurationUtils extends Object
Temporary until Commons Lang 3.12.0.
  • Constructor Details

    • DurationUtils

      DurationUtils()
  • Method Details

    • isPositive

      static boolean isPositive(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(Duration duration)
    • zeroIfNull

      static Duration zeroIfNull(Duration controlIdle)