T
- The condition evaluation result value type.public class EvaluatedCondition<T> extends Object
Modifier and Type | Method and Description |
---|---|
String |
getAlias() |
String |
getDescription() |
long |
getElapsedTimeInMS() |
org.hamcrest.Matcher<? super T> |
getMatcher() |
Duration |
getPollInterval() |
long |
getRemainingTimeInMS() |
T |
getValue() |
boolean |
hasAlias() |
boolean |
isConditionRunningForever() |
boolean |
isHamcrestCondition() |
boolean |
isSatisfied() |
public String getDescription()
public boolean isHamcrestCondition()
true
if the condition has a matcher (i.e. it's a Hamcrest Based condition) which means that getMatcher()
will return a non-null value.public org.hamcrest.Matcher<? super T> getMatcher()
isHamcrestCondition()
public T getValue()
public long getElapsedTimeInMS()
public long getRemainingTimeInMS()
Long.MAX_VALUE
if no timeout defined, i.e., running forever.public boolean isConditionRunningForever()
true
if the condition doesn't have a timeout, false
otherwise.public boolean isSatisfied()
true
if the condition is satisfied (i.e. hamcrest matcher matches the value), false
otherwise (i.e. an intermediate value).public String getAlias()
hasAlias()
public boolean hasAlias()
true
if this condition defined an alias.getAlias()
public Duration getPollInterval()
Copyright © 2010–2015. All rights reserved.