Class MergedEnumeration<E>

  • Type Parameters:
    E -
    All Implemented Interfaces:
    java.util.Enumeration<E>

    public class MergedEnumeration<E>
    extends java.lang.Object
    implements java.util.Enumeration<E>
    An utility class to merge several enumerations into a single one
    Author:
    Anthony Dahanne
    • Constructor Summary

      Constructors 
      Constructor Description
      MergedEnumeration​(java.util.Enumeration<E>... enumerations)
      Merges all enumerations found as constructor arguments into a single one
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasMoreElements()  
      E nextElement()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Enumeration

        asIterator
    • Constructor Detail

      • MergedEnumeration

        public MergedEnumeration​(java.util.Enumeration<E>... enumerations)
        Merges all enumerations found as constructor arguments into a single one
        Parameters:
        enumerations -
    • Method Detail

      • hasMoreElements

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

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