Class BundleClassSpace.ChainedEnumeration<T>

  • All Implemented Interfaces:
    java.util.Enumeration<T>
    Enclosing class:
    BundleClassSpace

    private static final class BundleClassSpace.ChainedEnumeration<T>
    extends java.lang.Object
    implements java.util.Enumeration<T>
    Chains a series of Enumerations together to look like a single Enumeration.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Enumeration<T>[] enumerations  
      private int index  
    • Constructor Summary

      Constructors 
      Constructor Description
      ChainedEnumeration​(java.util.Enumeration<T>... enumerations)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasMoreElements()  
      T 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

      • enumerations

        private final java.util.Enumeration<T>[] enumerations
      • index

        private int index
    • Constructor Detail

      • ChainedEnumeration

        ChainedEnumeration​(java.util.Enumeration<T>... enumerations)
    • Method Detail

      • hasMoreElements

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

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