EnhancedSuppliers
EnhancedNumericSuppliers
We’ll look at EnhancedDoubleSupplier
, EnhancedUnitSupplier
also exists and
is essentially the same, but works with Unit
s from Util.
Constructing:
State:
Manual update management:
Conditional binding:
Conditional bindings also support greaterThanEqualTo
and lessThanEqualTo
.
They’re capable of pretty complex conditions built around the state of the
controller, its worth taking a look at the documentation attached to the system,
and other examples which document the use of conditional binding. The system is
pretty intuitive and will work if you list your values from smallest to largest,
or if you form closed pairs and list those to it.