Interface IteratorResolver<T1,T2>

Type Parameters:
T1 - type of the object for which to find an iterator
T2 - type of the objects the returned iterator will iterate through

public interface IteratorResolver<T1,T2>

An interface to find an Iterator for an object (usually for use in some generic kind of iterator or filtering method)

Author:
agz
  • Method Summary

    Modifier and Type
    Method
    Description
    Iterator<? extends T2>
    iterator(T1 object)
    Returns an Iterator for the specified object.
  • Method Details

    • iterator

      Iterator<? extends T2> iterator(T1 object)
      Returns an Iterator for the specified object.

      This method may return null if there is no suitable iterator for the specified object.

      The specified object must not be null.

      Parameters:
      object - object to find the Iterator for.
      Returns:
      an iterator for the specified object or null