Package gnu.mapping
Class ConstrainedLocation<T>
java.lang.Object
gnu.mapping.Location<T>
gnu.mapping.ConstrainedLocation<T>
- Direct Known Subclasses:
ReadOnlyLocation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Tfinal Tget()Get the current value of this location.final TbooleanisBound()booleanstatic <T> ConstrainedLocation<T> final voidvoidsetRestore(Object oldValue) Restore an old value.setWithSave(T newValue) Set a value, but return cookie so old value can be restored.voidundefine()
-
Field Details
-
base
-
converter
-
-
Constructor Details
-
ConstrainedLocation
public ConstrainedLocation()
-
-
Method Details
-
make
-
getKeySymbol
- Overrides:
getKeySymbolin classLocation<T>
-
getKeyProperty
- Overrides:
getKeyPropertyin classLocation<T>
-
isConstant
public boolean isConstant()- Overrides:
isConstantin classLocation<T>
-
get
Description copied from class:LocationGet the current value of this location. -
get
-
isBound
public boolean isBound() -
coerce
-
set
-
undefine
public void undefine() -
setWithSave
Description copied from class:LocationSet a value, but return cookie so old value can be restored. This is intended for fluid-let where (in the case of multiple threads) a simple save-restore isn't always the right thing.- Overrides:
setWithSavein classLocation<T>
-
setRestore
Description copied from class:LocationRestore an old value.- Overrides:
setRestorein classLocation<T>- Parameters:
oldValue- the return value from a prior setWithSave.
-