Module MaterialFX
Class SynchronizedProperty.Helper
java.lang.Object
io.github.palexdev.materialfx.beans.properties.base.SynchronizedProperty.Helper
- Enclosing interface:
- SynchronizedProperty<T>
Helper class to avoid code duplication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> booleancheck(SynchronizedProperty<T> property, T value, ObservableValue<?> observable) Check some parameters before proceeding with the set and wait method
-
Constructor Details
-
Helper
public Helper()
-
-
Method Details
-
check
public static <T> boolean check(SynchronizedProperty<T> property, T value, ObservableValue<?> observable) Check some parameters before proceeding with the set and wait method- Parameters:
value- the new value of the propertyobservable- the observable to wait for- Returns:
- whether the check failed
- Throws:
IllegalArgumentException- if the given observable is the property itself or if the passed observable is another SynchronizedProperty, and it is already waiting for some other observableIllegalStateException- if the property is bound unidirectionally, or if this property is already waiting for another observable
-