Class MappedValueBase<F,T>
java.lang.Object
net.thevpc.common.props.impl.PropertyBase
net.thevpc.common.props.impl.ObservableValueBase<T>
net.thevpc.common.props.impl.WritableValueBase<T>
net.thevpc.common.props.impl.MappedValueBase<F,T>
- All Implemented Interfaces:
GetValueModel<T>, ObservableValue<T>, Property, SetValueModel<T>, WritableProperty, WritableValue<T>, WritableValueModel<T>
- Direct Known Subclasses:
MappedValueBoolean
-
Field Summary
Fields inherited from class WritableValueBase
adjusters, vetosFields inherited from class ObservableValueBase
modelFields inherited from class PropertyBase
listeners, parentProperty -
Constructor Summary
ConstructorsConstructorDescriptionMappedValueBase(String name, PropertyType toType, ObservableValue<F> value, Function<F, T> mapper) -
Method Summary
Methods inherited from class WritableValueBase
adjusters, createReadOnly, currentPath, get, model, readOnly, set, vetosMethods inherited from class ObservableValueBase
equals, hashCode, toStringMethods inherited from class PropertyBase
createListeners, events, fullPropertyName, parentProperty, propagateEvents, propertyName, propertyType, userObjectsMethods inherited from interface ObservableValue
bindConvert, bindTarget, doNonNull, getOr, getOrDefault, getRequired, isNotNull, isNull, mapBooleanValue, mapDoubleValue, mapEqualsValue, mapFloatValue, mapIntValue, mapLongValue, mapNotEqualsValue, mapStringValue, mapValue, mapValue, propertyClass, unbind, withValueMethods inherited from interface Property
events, getChildProperty, onChange, onChange, onChangeAndInit, onChangeAndInit, onPropagatedChange, onPropagatedChange, onPropagatedChangeAndInit, onPropagatedChangeAndInit, propertyName, propertyType, userObjects, with, withMethods inherited from interface WritableValue
bind, bind, bind, bind, bindSource, bindTo, getOrCompute, setAndBind, setAndBindConvert, setUsing, setUsingNonNull
-
Constructor Details
-
MappedValueBase
public MappedValueBase(String name, PropertyType toType, ObservableValue<F> value, Function<F, T> mapper)
-
-
Method Details
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceProperty- Overrides:
isWritablein classWritableValueBase<T>
-