Class CompoundEnumeration<E>

java.lang.Object
de.iip_ecosphere.platform.support.plugins.CompoundEnumeration<E>
Type Parameters:
E - the element type
All Implemented Interfaces:
Enumeration<E>

public class CompoundEnumeration<E> extends Object implements Enumeration<E>
A compound enumeration.
Author:
SUN/Oracle (sun.misc)
  • Field Details

    • enums

      private Enumeration<E>[] enums
    • index

      private int index
  • Constructor Details

    • CompoundEnumeration

      public CompoundEnumeration(Enumeration<E>[] enums)
      Creates a compound enumeration.
      Parameters:
      enums - the enumerations to enumerated over.
  • Method Details

    • next

      private boolean next()
      Determines the next element and returns whether it exists.
      Returns:
      does the next element exist
    • hasMoreElements

      public boolean hasMoreElements()
      Specified by:
      hasMoreElements in interface Enumeration<E>
    • nextElement

      public E nextElement()
      Specified by:
      nextElement in interface Enumeration<E>