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 T
final T
get()
Get the current value of this location.final T
boolean
isBound()
boolean
static <T> ConstrainedLocation
<T> final void
void
setRestore
(Object oldValue) Restore an old value.setWithSave
(T newValue) Set a value, but return cookie so old value can be restored.void
undefine()
-
Field Details
-
base
-
converter
-
-
Constructor Details
-
ConstrainedLocation
public ConstrainedLocation()
-
-
Method Details
-
make
-
getKeySymbol
- Overrides:
getKeySymbol
in classLocation<T>
-
getKeyProperty
- Overrides:
getKeyProperty
in classLocation<T>
-
isConstant
public boolean isConstant()- Overrides:
isConstant
in classLocation<T>
-
get
Description copied from class:Location
Get the current value of this location. -
get
-
isBound
public boolean isBound() -
coerce
-
set
-
undefine
public void undefine() -
setWithSave
Description copied from class:Location
Set 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:
setWithSave
in classLocation<T>
-
setRestore
Description copied from class:Location
Restore an old value.- Overrides:
setRestore
in classLocation<T>
- Parameters:
oldValue
- the return value from a prior setWithSave.
-