Class MultipleParentClassLoader.CompoundEnumeration

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

    protected static class MultipleParentClassLoader.CompoundEnumeration
    extends java.lang.Object
    implements java.util.Enumeration<java.net.URL>
    A compound URL enumeration.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Enumeration<java.net.URL> currentEnumeration
      The currently represented enumeration or null if no such enumeration is currently selected.
      private java.util.List<java.util.Enumeration<java.net.URL>> enumerations
      The remaining lists of enumerations.
      private static int FIRST
      Indicates the first index of a list.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CompoundEnumeration​(java.util.List<java.util.Enumeration<java.net.URL>> enumerations)
      Creates a compound enumeration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasMoreElements()
      java.net.URL 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
    • Field Detail

      • FIRST

        private static final int FIRST
        Indicates the first index of a list.
        See Also:
        Constant Field Values
      • enumerations

        private final java.util.List<java.util.Enumeration<java.net.URL>> enumerations
        The remaining lists of enumerations.
      • currentEnumeration

        private java.util.Enumeration<java.net.URL> currentEnumeration
        The currently represented enumeration or null if no such enumeration is currently selected.
    • Constructor Detail

      • CompoundEnumeration

        protected CompoundEnumeration​(java.util.List<java.util.Enumeration<java.net.URL>> enumerations)
        Creates a compound enumeration.
        Parameters:
        enumerations - The enumerations to represent.
    • 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>