T
- The type of objects in the queryable iteratorpublic interface IQueryable<T> extends Iterable<T>
Modifier and Type | Method and Description |
---|---|
int |
count()
Get the number of records in this iterator.
|
IQueryable<T> |
orderBy(Comparator<T> comparator)
Returns a queryable iterator, where the elements of this iterator are sorted using the
comparator.
|
<S> IQueryable<S> |
select(ITransformer<T,S> transformer)
Given a transformer that converts objects of type T to those of type S, this function returns
a new queryable iterator, containing objects of type S which are created by applying the
transformer to each element of this iterator.
|
IQueryable<T> |
unique()
Get a queryable iterator containing the unique elements of this iterator.
|
IQueryable<T> |
where(Predicate<T> condition)
Get a queryable iterator that contains the elements of this iterator which satisfy the
condition.
|
forEach, iterator, spliterator
IQueryable<T> where(Predicate<T> condition)
condition
- A Predicate
, which takes
an object of type T and returns true/false.IQueryable<T> orderBy(Comparator<T> comparator)
comparator
- The comparator for type T<S> IQueryable<S> select(ITransformer<T,S> transformer)
S
- The type of the elements of the returned iteratortransformer
- An ITransformer
that converts objects of type T to those of type SIQueryable<T> unique()
int count()
Copyright © 2017. All rights reserved.