Module javafx.base

Class SetExpression<E>

    • Constructor Detail

      • SetExpression

        public SetExpression()
    • Method Detail

      • setExpression

        public static <E> SetExpression<E> setExpression​(ObservableSetValue<E> value)
        Returns a SetExpression that wraps a ObservableSetValue. If the ObservableSetValue is already a SetExpression, it will be returned. Otherwise a new SetBinding is created that is bound to the ObservableSetValue.
        Type Parameters:
        E - the type of the Set elements
        Parameters:
        value - The source ObservableSetValue
        Returns:
        A SetExpression that wraps the ObservableSetValue if necessary
        Throws:
        NullPointerException - if value is null
      • getSize

        public int getSize()
        The size of the set
        Returns:
        the size
      • isNull

        public BooleanBinding isNull()
        Creates a new BooleanBinding that holds true if the wrapped set is null.
        Returns:
        the new BooleanBinding
      • isNotNull

        public BooleanBinding isNotNull()
        Creates a new BooleanBinding that holds true if the wrapped set is not null.
        Returns:
        the new BooleanBinding
      • asString

        public StringBinding asString()
        Creates a StringBinding that holds the value of the SetExpression turned into a String. If the value of this SetExpression changes, the value of the StringBinding will be updated automatically.
        Returns:
        the new StringBinding