Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
VCollections – Release 1
Interface org.violetlib.collections.FindVisitor
Inherited members: ShowHide
Deprecated: ShowHide
org.violetlib.collections

Interface FindVisitor<E,R>

  • 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.
    • Static Methods 
      Modifier and Type Static Method and Description
      Ordinary member indicator fromIndexedFindVisitor Reveal DetailHide Detail
      static <V,R> FindVisitor<V,R> fromIndexedFindVisitor(IndexedFindVisitor<V,R> v)
      Return a find visitor that calls an indexed find visitor.
      static <V,R> FindVisitor<V,R> fromIndexedFindVisitor(IndexedFindVisitor<V,R> v)
      Return a find visitor that calls an indexed find visitor. The indexed find visitor receives indexes in increasing order.
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator visit Reveal DetailHide Detail
      abstract R visit(E element)
       
      R visit(E element)