com.atlassian.pageobjects.elements.query
Class AbstractTimedCondition

java.lang.Object
  extended by com.atlassian.pageobjects.elements.query.AbstractPollingQuery
      extended by com.atlassian.pageobjects.elements.query.AbstractTimedQuery<Boolean>
          extended by com.atlassian.pageobjects.elements.query.AbstractTimedCondition
All Implemented Interfaces:
PollingQuery, TimedCondition, TimedQuery<Boolean>, ClockAware

@NotThreadSafe
public abstract class AbstractTimedCondition
extends AbstractTimedQuery<Boolean>
implements TimedCondition, ClockAware

Abstract timed condition based on AbstractTimedQuery. Override AbstractTimedQuery.currentValue() to complete implementation.


Field Summary
 
Fields inherited from class com.atlassian.pageobjects.elements.query.AbstractPollingQuery
defaultTimeout, interval
 
Fields inherited from interface com.atlassian.pageobjects.elements.query.PollingQuery
DEFAULT_INTERVAL
 
Constructor Summary
protected AbstractTimedCondition(Clock clock, long defTimeout, long interval)
           
protected AbstractTimedCondition(long defTimeout, long interval)
           
protected AbstractTimedCondition(PollingQuery other)
           
 
Method Summary
protected  boolean shouldReturn(Boolean currentEval)
          If the current evaluated query value should be returned.
 
Methods inherited from class com.atlassian.pageobjects.elements.query.AbstractTimedQuery
by, by, byDefaultTimeout, clock, currentValue, expirationHandler, now, resetLastRun, toString
 
Methods inherited from class com.atlassian.pageobjects.elements.query.AbstractPollingQuery
defaultTimeout, interval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.pageobjects.elements.query.TimedQuery
by, by, byDefaultTimeout, now
 
Methods inherited from interface com.atlassian.pageobjects.elements.query.PollingQuery
defaultTimeout, interval
 
Methods inherited from interface com.atlassian.pageobjects.elements.query.util.ClockAware
clock
 

Constructor Detail

AbstractTimedCondition

protected AbstractTimedCondition(Clock clock,
                                 long defTimeout,
                                 long interval)

AbstractTimedCondition

protected AbstractTimedCondition(long defTimeout,
                                 long interval)

AbstractTimedCondition

protected AbstractTimedCondition(PollingQuery other)
Method Detail

shouldReturn

protected final boolean shouldReturn(Boolean currentEval)
Description copied from class: AbstractTimedQuery
If the current evaluated query value should be returned.

Specified by:
shouldReturn in class AbstractTimedQuery<Boolean>
Parameters:
currentEval - current query evaluation expires
Returns:
true, if the current query evaluation should be returned as a result of this timed query


Copyright © 2014 Atlassian. All rights reserved.