Class ByteArrayClassLoader.SingletonEnumeration

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

    protected static class ByteArrayClassLoader.SingletonEnumeration
    extends java.lang.Object
    implements java.util.Enumeration<java.net.URL>
    An enumeration that contains a single element.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.net.URL element
      The current element or null if this enumeration does not contain further elements.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SingletonEnumeration​(java.net.URL element)
      Creates a new singleton 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

      • element

        private java.net.URL element
        The current element or null if this enumeration does not contain further elements.
    • Constructor Detail

      • SingletonEnumeration

        protected SingletonEnumeration​(java.net.URL element)
        Creates a new singleton enumeration.
        Parameters:
        element - The only element.
    • 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>