com.atlassian.pageobjects.elements.query
Class StaticQuery<T>
java.lang.Object
com.atlassian.pageobjects.elements.query.AbstractPollingQuery
com.atlassian.pageobjects.elements.query.AbstractTimedQuery<T>
com.atlassian.pageobjects.elements.query.StaticQuery<T>
- All Implemented Interfaces:
- PollingQuery, TimedQuery<T>, ClockAware
public final class StaticQuery<T>
- extends AbstractTimedQuery<T>
- implements TimedQuery<T>
A TimedQuery that always immediately returns a pre-defined static value.
|
Constructor Summary |
StaticQuery(T value,
long defTimeout,
long interval)
|
StaticQuery
public StaticQuery(T value,
long defTimeout,
long interval)
shouldReturn
protected boolean shouldReturn(T currentEval)
- Description copied from class:
AbstractTimedQuery
- If the current evaluated query value should be returned.
- Specified by:
shouldReturn in class AbstractTimedQuery<T>
- Parameters:
currentEval - current query evaluation
expires
- Returns:
true, if the current query evaluation should be returned as a result of this timed query
currentValue
protected T currentValue()
- Description copied from class:
AbstractTimedQuery
- Current evaluation of the query.
- Specified by:
currentValue in class AbstractTimedQuery<T>
- Returns:
- current evaluation of the query
toString
public String toString()
- Overrides:
toString in class AbstractTimedQuery<T>
Copyright © 2014 Atlassian. All rights reserved.