Interface WritableProperty<V>

    • Field Detail

      • NO_PROPERTIES

        static final WritableProperty<?>[] NO_PROPERTIES
        Empty array instance.
    • Method Detail

      • copy

        WritableProperty<V> copy​(String newName,
                                 PropertyMetadata<V> newMetadata)
        Parameters:
        newName - the new name. May be null to keep the current name.
        newMetadata - the new metadata. May be null to keep the current metadata.
        Returns:
        a new instance of this property with empty value no bindings and the given parameters applied.
      • copy

        static <P extends WritableProperty<?>> P copy​(P property)
        Type Parameters:
        P - type of the property.
        Parameters:
        property - the property to copy.
        Returns:
        a copy of the given property with empty value and the given parameters applied.
      • copy

        static <P extends WritableProperty<?>> P copy​(P property,
                                                      String newName)
        Type Parameters:
        P - type of the property.
        Parameters:
        property - the property to copy.
        newName - the new name. May be null to keep the current name.
        Returns:
        a copy of the given property with empty value and the given parameters applied.
      • copy

        static <V,​P extends WritableProperty<V>> P copy​(P property,
                                                              String newName,
                                                              PropertyMetadata<V> newMetadata)
        Type Parameters:
        V - type of the properties value.
        P - type of the property.
        Parameters:
        property - the property to copy.
        newName - the new name. May be null to keep the current name.
        newMetadata - the new metadata. May be null to keep the current metadata.
        Returns:
        a copy of the given property with empty value and the given parameters applied.