Package com.intellij.util
Class EmptyQuery<R>
- java.lang.Object
-
- com.intellij.util.EmptyQuery<R>
-
-
Constructor Summary
Constructors Constructor Description EmptyQuery()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<R>
findAll()
Get all of the results in theCollection
R
findFirst()
Get the first result ornull
if no results have been found.boolean
forEach(Processor<R> consumer)
Process search results one-by-one.static <T> Query<T>
getEmptyQuery()
Iterator<R>
iterator()
R[]
toArray(R[] a)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
findAll
@NotNull public Collection<R> findAll()
Description copied from interface:Query
Get all of the results in theCollection
-
findFirst
public R findFirst()
Description copied from interface:Query
Get the first result ornull
if no results have been found.
-
forEach
public boolean forEach(@NotNull Processor<R> consumer)
Description copied from interface:Query
Process search results one-by-one. All the results will be subsequently fed to aconsumer
passed.
-
getEmptyQuery
public static <T> Query<T> getEmptyQuery()
-
-