Module MaterialFX

Class SynchronizedProperty.Helper

java.lang.Object
io.github.palexdev.materialfx.beans.properties.base.SynchronizedProperty.Helper
Enclosing interface:
SynchronizedProperty<T>

public static class SynchronizedProperty.Helper extends Object
Helper class to avoid code duplication.
  • 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 property
      observable - 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 observable
      IllegalStateException - if the property is bound unidirectionally, or if this property is already waiting for another observable