com.atlassian.pageobjects.elements.query
Class Queries

java.lang.Object
  extended by com.atlassian.pageobjects.elements.query.Queries

public final class Queries
extends Object

Utilities to create and manipulate timed queries

Since:
2.1

Method Summary
static
<T> TimedQuery<T>
forSupplier(Timeouts timeouts, com.google.common.base.Supplier<T> supplier)
          Returns a timed query, with current evaluation is based on a value provided by given supplier.
static
<T> TimedQuery<T>
forSupplier(Timeouts timeouts, com.google.common.base.Supplier<T> supplier, TimeoutType timeoutType)
          

Returns a timed query, with current evaluation is based on a value provided by given supplier.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forSupplier

public static <T> TimedQuery<T> forSupplier(Timeouts timeouts,
                                            com.google.common.base.Supplier<T> supplier)
Returns a timed query, with current evaluation is based on a value provided by given supplier. The supplier will be periodically called to compute the value of the query.

Parameters:
timeouts - an instance of timeouts to use for configured the new condition
supplier - supplier of the query evaluation
Returns:
new query based on supplier

forSupplier

public static <T> TimedQuery<T> forSupplier(Timeouts timeouts,
                                            com.google.common.base.Supplier<T> supplier,
                                            TimeoutType timeoutType)

Returns a timed query, with current evaluation is based on a value provided by given supplier. The supplier will be periodically called to compute the value of the query.

The resulting query's default timeout will be as specified by timeoutType.

Parameters:
timeouts - an instance of timeouts to use for configured the new condition
supplier - supplier of the query evaluation
timeoutType - timeout type for the resulting query
Returns:
new query based on supplier


Copyright © 2014 Atlassian. All rights reserved.