Package com.intellij.util
Class CollectionQuery<T>
- java.lang.Object
-
- com.intellij.util.CollectionQuery<T>
-
-
Constructor Summary
Constructors Constructor Description CollectionQuery(Collection<T> collection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<T>
findAll()
Get all of the results in theCollection
T
findFirst()
Get the first result ornull
if no results have been found.boolean
forEach(Processor<T> consumer)
Process search results one-by-one.Iterator<T>
iterator()
T[]
toArray(T[] 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
-
-
-
-
Constructor Detail
-
CollectionQuery
public CollectionQuery(@NotNull Collection<T> collection)
-
-
Method Detail
-
findAll
@NotNull public Collection<T> findAll()
Description copied from interface:Query
Get all of the results in theCollection
-
findFirst
public T findFirst()
Description copied from interface:Query
Get the first result ornull
if no results have been found.
-
forEach
public boolean forEach(@NotNull Processor<T> consumer)
Description copied from interface:Query
Process search results one-by-one. All the results will be subsequently fed to aconsumer
passed.
-
-