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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SingletonEnumeration
(URL element) Creates a new singleton enumeration. -
Method Summary
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 Details
-
element
The current element ornull
if this enumeration does not contain further elements.
-
-
Constructor Details
-
SingletonEnumeration
Creates a new singleton enumeration.- Parameters:
element
- The only element.
-
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElements
in interfaceEnumeration<URL>
-
nextElement
- Specified by:
nextElement
in interfaceEnumeration<URL>
-