< prev index next >

modules/javafx.base/src/main/java/javafx/util/Duration.java

Print this page

        

*** 353,396 **** /** * Returns true if the specified duration is less than (&lt;) this instance. * INDEFINITE is treated as if it were positive infinity. * * @param other cannot be null ! * @return true if millis < other.millis using double arithmetic */ public boolean lessThan(Duration other) { return millis < other.millis; } /** * Returns true if the specified duration is less than or equal to (&lt;=) this instance. * INDEFINITE is treated as if it were positive infinity. * * @param other cannot be null ! * @return true if millis <= other.millis using double arithmetic */ public boolean lessThanOrEqualTo(Duration other) { return millis <= other.millis; } /** * Returns true if the specified duration is greater than (&gt;) this instance. * INDEFINITE is treated as if it were positive infinity. * * @param other cannot be null ! * @return true if millis > other.millis using double arithmetic */ public boolean greaterThan(Duration other) { return millis > other.millis; } /** * Returns true if the specified duration is greater than or equal to (&gt;=) this instance. * INDEFINITE is treated as if it were positive infinity. * * @param other cannot be null ! * @return true if millis >= other.millis using double arithmetic */ public boolean greaterThanOrEqualTo(Duration other) { return millis >= other.millis; } --- 353,396 ---- /** * Returns true if the specified duration is less than (&lt;) this instance. * INDEFINITE is treated as if it were positive infinity. * * @param other cannot be null ! * @return true if millis &lt; other.millis using double arithmetic */ public boolean lessThan(Duration other) { return millis < other.millis; } /** * Returns true if the specified duration is less than or equal to (&lt;=) this instance. * INDEFINITE is treated as if it were positive infinity. * * @param other cannot be null ! * @return true if millis &lt;= other.millis using double arithmetic */ public boolean lessThanOrEqualTo(Duration other) { return millis <= other.millis; } /** * Returns true if the specified duration is greater than (&gt;) this instance. * INDEFINITE is treated as if it were positive infinity. * * @param other cannot be null ! * @return true if millis &gt; other.millis using double arithmetic */ public boolean greaterThan(Duration other) { return millis > other.millis; } /** * Returns true if the specified duration is greater than or equal to (&gt;=) this instance. * INDEFINITE is treated as if it were positive infinity. * * @param other cannot be null ! * @return true if millis &gt;= other.millis using double arithmetic */ public boolean greaterThanOrEqualTo(Duration other) { return millis >= other.millis; }
< prev index next >