Class ObservableValueImpl<T>
java.lang.Object
org.aksw.commons.collection.observable.ObservableValueImpl<T>
- Type Parameters:
T-
- All Implemented Interfaces:
SingleValuedAccessor<T>,ObservableValue<T>
public class ObservableValueImpl<T>
extends Object
implements SingleValuedAccessor<T>, ObservableValue<T>
Decorates a
SingleValuedAccessor (a getter+setter interface) with property change support.- Author:
- raven
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SingleValuedAccessor<T>protected PropertyChangeSupportprotected VetoableChangeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ObservableValue<T>create(T initialValue) get()voidtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aksw.commons.collection.observable.ObservableValue
addValueChangeListener, addVetoableChangeListener, convertMethods inherited from interface org.aksw.commons.accessors.SingleValuedAccessor
getOrDefault
-
Field Details
-
delegate
-
vcs
-
pcs
-
-
Constructor Details
-
ObservableValueImpl
-
-
Method Details
-
set
- Specified by:
setin interfaceSingleValuedAccessor<T>
-
get
- Specified by:
getin interfaceSingleValuedAccessor<T>
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceObservableValue<T>
-
addVetoableChangeListener
- Specified by:
addVetoableChangeListenerin interfaceObservableValue<T>
-
create
-
toString
-