Package it.tidalwave.role.ui.function
Class UnaryBoundFunctionSupport<DOMAIN_TYPE,CODOMAIN_TYPE>
- java.lang.Object
-
- it.tidalwave.role.ui.function.BoundFunctionSupport<DOMAIN_TYPE,CODOMAIN_TYPE>
-
- it.tidalwave.role.ui.function.UnaryBoundFunctionSupport<DOMAIN_TYPE,CODOMAIN_TYPE>
-
- All Implemented Interfaces:
ChangingSource<CODOMAIN_TYPE>
,BoundFunction<DOMAIN_TYPE,CODOMAIN_TYPE>
- Direct Known Subclasses:
NonEmptyFunction
,WeakCopyFunctionSupport
public abstract class UnaryBoundFunctionSupport<DOMAIN_TYPE,CODOMAIN_TYPE> extends BoundFunctionSupport<DOMAIN_TYPE,CODOMAIN_TYPE>
- Author:
- Fabrizio Giudici
-
-
Field Summary
Fields Modifier and Type Field Description protected ChangingSource<DOMAIN_TYPE>
source
protected CODOMAIN_TYPE
value
-
Constructor Summary
Constructors Modifier Constructor Description protected
UnaryBoundFunctionSupport(ChangingSource<DOMAIN_TYPE> source)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract CODOMAIN_TYPE
function(DOMAIN_TYPE value)
CODOMAIN_TYPE
get()
Returns the value of this object.protected void
onSourceChange(DOMAIN_TYPE oldSourceValue, DOMAIN_TYPE newSourceValue)
-
Methods inherited from class it.tidalwave.role.ui.function.BoundFunctionSupport
fireValueChanged, fireValueChanged, unbindAll
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.tidalwave.role.ui.ChangingSource
addPropertyChangeListener, getPropertyChangeListeners, removePropertyChangeListener
-
-
-
-
Field Detail
-
source
@Nonnull protected final ChangingSource<DOMAIN_TYPE> source
-
value
protected CODOMAIN_TYPE value
-
-
Constructor Detail
-
UnaryBoundFunctionSupport
protected UnaryBoundFunctionSupport(@Nonnull ChangingSource<DOMAIN_TYPE> source)
-
-
Method Detail
-
onSourceChange
protected void onSourceChange(@Nonnull DOMAIN_TYPE oldSourceValue, @Nonnull DOMAIN_TYPE newSourceValue)
-
function
@Nonnull protected abstract CODOMAIN_TYPE function(DOMAIN_TYPE value)
-
get
@Nonnull public final CODOMAIN_TYPE get()
Description copied from interface:ChangingSource
Returns the value of this object.- Returns:
- the value
-
-