VCollections – Release 1
Interface org.violetlib.collections.FindVisitor
Deprecated: ShowHide
-
- Type Parameters:
E
- The type of the elements.R
- The type of the value returned by the visitor.
public interface FindVisitor<E,R>
A visitor of elements in a collection that can short-circuit the iteration by returning a (non-null) result.
-
-
|
Modifier and Type |
Static Method and Description |
|
fromIndexedFindVisitor |
static <V,R> FindVisitor<V,R> fromIndexedFindVisitor(IndexedFindVisitor<V,R> v)
Return a find visitor that calls an indexed find visitor.
-
Return a find visitor that calls an indexed find visitor.
The indexed find visitor receives indexes in increasing order.
|
-
|
Modifier and Type |
Method and Description |
|
visit |
abstract R visit(E element)
|