v1.4.0
New support to get properties as a JavaFX property based on common datatypes such as the following:
if (myViewModel.getIntegerProperty(AGE).isLessThan(50)) {
System.out.println(" you are %s years young!".formatted(myViewModel.getIntegerProperty(AGE).getValue()));
};
Prior we only had getProperty(AGE)
where you could not compare the value in an if statement (inline) like above.
IntegerProperty ageProp = myViewModel.getProperty(AGE);
if (ageProp.isLessThan(50)) {
System.out.println(" you are %s years young!".formatted(ageProp.getValue()));
};