Class IteratorElementsAccessor

java.lang.Object
org.apache.commons.ognl.IteratorElementsAccessor
All Implemented Interfaces:
ElementsAccessor

public class IteratorElementsAccessor extends Object implements ElementsAccessor
Implementation of the ElementsAccessor interface for Iterators, which simply returns the target iterator itself.
  • Constructor Details

    • IteratorElementsAccessor

      public IteratorElementsAccessor()
  • Method Details

    • getElements

      public Enumeration<?> getElements(Object target)
      Returns an iterator over the elements of the given target object.
      Specified by:
      getElements in interface ElementsAccessor
      Parameters:
      target - the object to get the elements of
      Returns:
      an iterator over the elements of the given object