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)?