Class EnumerationElementsAccessor

  • All Implemented Interfaces:
    ElementsAccessor

    public class EnumerationElementsAccessor
    extends Object
    implements ElementsAccessor
    Implementation of the ElementsAccessor interface for Enumerations, which returns an iterator that passes its calls through to the target Enumeration.
    • Constructor Detail

      • EnumerationElementsAccessor

        public EnumerationElementsAccessor()
    • Method Detail

      • 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