Package it.tidalwave.role.ui.function
Class NonEmptyFunction
- java.lang.Object
-
- it.tidalwave.role.ui.function.BoundFunctionSupport<DOMAIN_TYPE,CODOMAIN_TYPE>
-
- it.tidalwave.role.ui.function.UnaryBoundFunctionSupport<java.lang.String,java.lang.Boolean>
-
- it.tidalwave.role.ui.function.NonEmptyFunction
-
- All Implemented Interfaces:
ChangingSource<java.lang.Boolean>
,BoundFunction<java.lang.String,java.lang.Boolean>
public class NonEmptyFunction extends UnaryBoundFunctionSupport<java.lang.String,java.lang.Boolean>
- Author:
- Fabrizio Giudici
-
-
Field Summary
-
Fields inherited from class it.tidalwave.role.ui.function.UnaryBoundFunctionSupport
source, value
-
-
Constructor Summary
Constructors Constructor Description NonEmptyFunction(ChangingSource<java.lang.String> source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Boolean
function(java.lang.String value)
static NonEmptyFunction
nonEmpty(ChangingSource<java.lang.String> source)
protected void
onSourceChange(java.lang.String oldSourceValue, java.lang.String newSourceValue)
-
Methods inherited from class it.tidalwave.role.ui.function.UnaryBoundFunctionSupport
get
-
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
-
-
-
-
Constructor Detail
-
NonEmptyFunction
public NonEmptyFunction(@Nonnull ChangingSource<java.lang.String> source)
-
-
Method Detail
-
nonEmpty
@Nonnull public static NonEmptyFunction nonEmpty(@Nonnull ChangingSource<java.lang.String> source)
-
onSourceChange
protected void onSourceChange(@Nonnull java.lang.String oldSourceValue, @Nonnull java.lang.String newSourceValue)
- Overrides:
onSourceChange
in classUnaryBoundFunctionSupport<java.lang.String,java.lang.Boolean>
-
function
@Nonnull protected java.lang.Boolean function(java.lang.String value)
- Specified by:
function
in classUnaryBoundFunctionSupport<java.lang.String,java.lang.Boolean>
-
-