Class TestFilter<T>
java.lang.Object
com.fluxtion.ext.streaming.api.test.TestFilter<T>
- Type Parameters:
T
- The filtered type
- All Implemented Interfaces:
FilterWrapper<T>
,Stateful<T>
,Test
,Wrapper<T>
public class TestFilter<T> extends java.lang.Object implements FilterWrapper<T>
A filtering wrapper that propagates the event wave when a referenced test is in the
passed state, validated with
Test.passed()
- Author:
- V12 Technology Ltd.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fluxtion.ext.streaming.api.Stateful
Stateful.StatefulNumber<S>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TestFilter(Wrapper<T> trackedWrapper, Test test)
TestFilter(T tracked, Test notifier)
-
Method Summary
Modifier and Type Method Description T
event()
The wrapped nodejava.lang.Class<T>
eventClass()
The type of the wrapped nodeboolean
filteredUpdate()
boolean
updated()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fluxtion.ext.streaming.api.FilterWrapper
elseStream, forEach, forEach, id, notifyOnChange, push, validOnStart
Methods inherited from interface com.fluxtion.ext.streaming.api.Stateful
combine, deduct, setBucketCount
Methods inherited from interface com.fluxtion.ext.streaming.api.Wrapper
arg, arg, collect, console, defaultVal, filter, filter, get, group, group, isValidOnStart, map, map, map, map, map, map, map, map, map, map, notiferMerge, notifierOverride, publishAndReset, push, reset, resetAndPublish, resetNoPublish
-
Constructor Details
-
Method Details
-
updated
public boolean updated() -
filteredUpdate
public boolean filteredUpdate() -
event
Description copied from interface:Wrapper
The wrapped node -
eventClass
Description copied from interface:Wrapper
The type of the wrapped node- Specified by:
eventClass
in interfaceWrapper<T>
- Returns:
- wrapped node class
-