public abstract class ObjectExpression<T> extends java.lang.Object implements ObservableObjectValue<T>
ObjectExpression is a
ObservableObjectValue plus additional convenience
methods to generate bindings in a fluent style.
A concrete sub-class of ObjectExpression has to implement the method
ObservableObjectValue.get(), which provides the
actual value of this expression.
| Constructor and Description |
|---|
ObjectExpression() |
| Modifier and Type | Method and Description |
|---|---|
T |
getValue()
Returns the current value of this
ObservableValue |
BooleanBinding |
isEqualTo(java.lang.Object other)
Creates a new
BooleanExpression that holds true if this
ObjectExpression is equal to a constant value. |
BooleanBinding |
isEqualTo(ObservableObjectValue<?> other)
Creates a new
BooleanExpression that holds true if this and
another ObservableObjectValue are equal. |
BooleanBinding |
isNotEqualTo(java.lang.Object other)
Creates a new
BooleanExpression that holds true if this
ObjectExpression is not equal to a constant value. |
BooleanBinding |
isNotEqualTo(ObservableObjectValue<?> other)
Creates a new
BooleanExpression that holds true if this and
another ObservableObjectValue are not equal. |
BooleanBinding |
isNotNull()
|
BooleanBinding |
isNull()
|
static <T> ObjectExpression<T> |
objectExpression(ObservableObjectValue<T> value)
Returns an
ObjectExpression that wraps an
ObservableObjectValue. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetaddListener, removeListeneraddListener, removeListenerpublic T getValue()
ObservableValueObservableValuegetValue in interface ObservableValue<T>public static <T> ObjectExpression<T> objectExpression(ObservableObjectValue<T> value)
ObjectExpression that wraps an
ObservableObjectValue. If the
ObservableObjectValue is already an ObjectExpression, it
will be returned. Otherwise a new
ObjectBinding is created that is bound to
the ObservableObjectValue.value - The source ObservableObjectValueObjectExpression that wraps the
ObservableObjectValue if necessaryjava.lang.NullPointerException - if value is nullpublic BooleanBinding isEqualTo(ObservableObjectValue<?> other)
BooleanExpression that holds true if this and
another ObservableObjectValue are equal.other - the other ObservableObjectValueBooleanExpressionjava.lang.NullPointerException - if other is nullpublic BooleanBinding isEqualTo(java.lang.Object other)
BooleanExpression that holds true if this
ObjectExpression is equal to a constant value.other - the constant valueBooleanExpressionpublic BooleanBinding isNotEqualTo(ObservableObjectValue<?> other)
BooleanExpression that holds true if this and
another ObservableObjectValue are not equal.other - the other ObservableObjectValueBooleanExpressionjava.lang.NullPointerException - if other is nullpublic BooleanBinding isNotEqualTo(java.lang.Object other)
BooleanExpression that holds true if this
ObjectExpression is not equal to a constant value.other - the constant valueBooleanExpressionpublic BooleanBinding isNull()
BooleanBindingpublic BooleanBinding isNotNull()
BooleanBindingCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.