@PublicApi public interface SearchQuery<E,Q extends SearchQuery<E,Q>> extends com.google.common.base.Supplier<Iterable<E>>
filter(Predicate), map(Function), flatMap(Function),
bindTo(Class, Object...))Supplier.get(), now(), first(), hasResult(),
timed())PageElementSearch,
AnyQuery,
PageElementQuery,
PageElements| Modifier and Type | Method and Description |
|---|---|
<F> AnyQuery<F> |
bindTo(Class<F> pageObjectClass,
Object... extraArgs)
Map the results by binding into a page object.
|
Q |
filter(com.google.common.base.Predicate<? super E> predicate)
Filter the underlying results using
predicate. |
E |
first() |
<F> AnyQuery<F> |
flatMap(com.google.common.base.Function<? super E,Iterable<F>> mapper)
Flat map the results using
mapper. |
TimedCondition |
hasResult() |
<F> AnyQuery<F> |
map(com.google.common.base.Function<? super E,F> mapper)
Map the query results using
mapper. |
Iterable<E> |
now()
Equivalent to
Supplier.get(). |
TimedQuery<Iterable<E>> |
timed() |
@Nonnull Q filter(@Nonnull com.google.common.base.Predicate<? super E> predicate)
predicate.predicate - predicate to filter the results@Nonnull <F> AnyQuery<F> map(@Nonnull com.google.common.base.Function<? super E,F> mapper)
mapper.F - the new result typemapper - a function to map the results@Nonnull <F> AnyQuery<F> flatMap(@Nonnull com.google.common.base.Function<? super E,Iterable<F>> mapper)
mapper.F - the new result typemapper - the function to use to flat map@Nonnull <F> AnyQuery<F> bindTo(@Nonnull Class<F> pageObjectClass, @Nonnull Object... extraArgs)
F - the new result typepageObjectClass - page object classextraArgs - extra arguments to the bind methodPageObjects.bind(PageBinder, Iterable, Class, Object...)@Nonnull TimedCondition hasResult()
@Nonnull TimedQuery<Iterable<E>> timed()
Copyright © 2015 Atlassian. All rights reserved.