public interface Condition<T>
at least N
tuples have been seen on the stream.Tester.atLeastTupleCount(com.ibm.streamsx.topology.TStream, long),
Tester.tupleCount(com.ibm.streamsx.topology.TStream, long),
Tester.tupleContents(com.ibm.streamsx.topology.spl.SPLStream, com.ibm.streams.operator.Tuple...),
Tester.stringContents(com.ibm.streamsx.topology.TStream, String...),
Tester.stringContentsUnordered(com.ibm.streamsx.topology.TStream, String...)| Modifier and Type | Method and Description |
|---|---|
static Condition<java.lang.Boolean> |
all(Condition<?>... conditions)
Return a condition that is true if all conditions are valid.
|
default Condition<java.lang.Boolean> |
and(Condition<?>... conditions)
Return a condition that is true if this AND all
conditions are valid. |
T |
getResult()
Get the result for this condition.
|
boolean |
valid()
Test if this condition is valid.
|
boolean valid()
true if this condition is valid, false otherwise.T getResult()
default Condition<java.lang.Boolean> and(Condition<?>... conditions)
conditions are valid.
The result is a Boolean that indicates if all conditions is valid.conditions - Conditions to be ANDed together.conditions are valid.static Condition<java.lang.Boolean> all(Condition<?>... conditions)
conditions - Conidtions to be ANDed together.conditions are valid.