Package net.bytebuddy.dynamic.loading
Class ByteArrayClassLoader.SingletonEnumeration
- java.lang.Object
-
- net.bytebuddy.dynamic.loading.ByteArrayClassLoader.SingletonEnumeration
-
- All Implemented Interfaces:
Enumeration<URL>
- Enclosing class:
- ByteArrayClassLoader
protected static class ByteArrayClassLoader.SingletonEnumeration extends Object implements Enumeration<URL>
An enumeration that contains a single element.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SingletonEnumeration(URL element)
Creates a new singleton enumeration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreElements()
URL
nextElement()
-
-
-
Constructor Detail
-
SingletonEnumeration
protected SingletonEnumeration(URL element)
Creates a new singleton enumeration.- Parameters:
element
- The only element.
-
-
Method Detail
-
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interfaceEnumeration<URL>
-
nextElement
public URL nextElement()
- Specified by:
nextElement
in interfaceEnumeration<URL>
-
-