Found an issue in javafx.lang.Duration class.
specification for method "public ge(other: Duration) : Boolean"
says:
(1) "Returns true if the *specified* duration is greater than or equal to (>=) *this*
instance."
But I wonder if this statement is correct, since it would be more clear and
convenient to specify this method as:
(2) "Returns true if *this* duration instance is greater than or equal to (>=) *other*
(specified) instance."
Would be more clear if o1.ge(o2) will return true if o1>=o2 but not vise versa.
Moreover, current implementation behaves as described in (2).
The same issue with methods le(), gt() and lt().
specification for method "public ge(other: Duration) : Boolean"
says:
(1) "Returns true if the *specified* duration is greater than or equal to (>=) *this*
instance."
But I wonder if this statement is correct, since it would be more clear and
convenient to specify this method as:
(2) "Returns true if *this* duration instance is greater than or equal to (>=) *other*
(specified) instance."
Would be more clear if o1.ge(o2) will return true if o1>=o2 but not vise versa.
Moreover, current implementation behaves as described in (2).
The same issue with methods le(), gt() and lt().