JavaFX: Is there an integer property allowing null values and providing methods like greaterThan and lessThan?

Viewed 661

In JavaFX, there is an IntegerProperty class which inherits methods such as greaterThan and lessThan that return a BooleanBinding. However, null values are not allowed since it stores the value as an int (hence the separate IntegerProperty class).

Conversely, ObjectProperty<Integer> allows null values but does not provide such methods.

Is there a way of having both of these: allowing null values while being able to obtain a BooleanBinding (or similar) comparing two properties (perhaps using a Comparator, for example)?

1 Answers
Related