Class CompositeEnumeration

  • All Implemented Interfaces:
    java.util.Enumeration<java.net.URL>

    public class CompositeEnumeration
    extends java.lang.Object
    implements java.util.Enumeration<java.net.URL>
    We need a compound enumeration so that we can aggregate the results from various delegates.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.Enumeration<java.net.URL>[] enumerators  
      (package private) int index  
    • Constructor Summary

      Constructors 
      Constructor Description
      CompositeEnumeration​(java.util.List<java.util.Enumeration<java.net.URL>> enumerators)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.util.Enumeration<java.net.URL> getCurrent()  
      boolean hasMoreElements()  
      java.net.URL nextElement()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • enumerators

        java.util.Enumeration<java.net.URL>[] enumerators
      • index

        int index
    • Constructor Detail

      • CompositeEnumeration

        public CompositeEnumeration​(java.util.List<java.util.Enumeration<java.net.URL>> enumerators)
    • Method Detail

      • hasMoreElements

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

        public java.net.URL nextElement()
        Specified by:
        nextElement in interface java.util.Enumeration<java.net.URL>
      • getCurrent

        private java.util.Enumeration<java.net.URL> getCurrent()