Module is.codion.common.utilities
Class PropertyValue<T>
java.lang.Object
is.codion.common.reactive.value.AbstractValue<T>
is.codion.common.utilities.property.PropertyValue<T>
- Type Parameters:
T- the value type
- All Implemented Interfaces:
Observable<T>,Observer<T>,Value<T>
A Value associated with a named property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface is.codion.common.reactive.value.Value
Value.Builder<T,B extends Value.Builder<T, B>>, Value.BuilderFactory, Value.Notify, Value.Validator<T> -
Method Summary
Methods inherited from class is.codion.common.reactive.value.AbstractValue
addValidator, clear, createObservable, get, isNullable, link, link, map, notifyObserver, observable, observer, removeValidator, set, unlink, unlink, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface is.codion.common.reactive.observer.Observable
addConsumer, addListener, addWeakConsumer, addWeakListener, getOrThrow, is, isNot, isNull, optional, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
-
Method Details
-
name
- Returns:
- the name of the property this value represents
-
getOrThrow
- Returns:
- the value
-
remove
public void remove()Sets this value to null as well as removing it from the underlying store and clearing the system property. -
toString
-
getValue
Description copied from class:AbstractValueReturns the actual internal value.- Specified by:
getValuein classAbstractValue<T>- Returns:
- the value
-
setValue
Description copied from class:AbstractValueSets the actual internal value.- Specified by:
setValuein classAbstractValue<T>- Parameters:
value- the value
-