Verified Owner
Top Description Constructors Methods
org.jabref.logic.util

public Class OptionalObjectProperty<T>

extends SimpleObjectProperty<Optional<T>>
Class Inheritance
Imports
java.util.Optional, javafx.beans.binding.BooleanExpression, .ObjectBinding, javafx.beans.property.SimpleObjectProperty, com.tobiasdiez.easybind.PreboundBinding

Similar to com.tobiasdiez.easybind.monadic.MonadicObservableValue

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <T> OptionalObjectProperty<T>
public BooleanExpression
public static <T> OptionalObjectProperty<T>
ofNullable(T value)

public ObjectBinding<T>
orElseOpt(T other)

Returns a new ObservableValue that holds the value held by this ObservableValue, or other when this ObservableValue is empty.

Inherited from javafx.beans.property.SimpleObjectProperty:
getBeangetName

Constructor Detail

OptionalObjectPropertyback to summary
private OptionalObjectProperty(Optional<T> initialValue)

Method Detail

emptyback to summary
public static <T> OptionalObjectProperty<T> empty()
isPresentback to summary
public BooleanExpression isPresent()
ofNullableback to summary
public static <T> OptionalObjectProperty<T> ofNullable(T value)
orElseOptback to summary
public ObjectBinding<T> orElseOpt(T other)

Returns a new ObservableValue that holds the value held by this ObservableValue, or other when this ObservableValue is empty.