< 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 (<) 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 (<=) 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 (>) 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 (>=) 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 (<) 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 (<=) 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 (>) 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 (>=) 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;
}
< prev index next >