Package net.bytebuddy.dynamic.loading
Class ByteArrayClassLoader.ChildFirst.PrependingEnumeration
java.lang.Object
net.bytebuddy.dynamic.loading.ByteArrayClassLoader.ChildFirst.PrependingEnumeration
- All Implemented Interfaces:
Enumeration<URL>
- Enclosing class:
ByteArrayClassLoader.ChildFirst
protected static class ByteArrayClassLoader.ChildFirst.PrependingEnumeration
extends Object
implements Enumeration<URL>
An enumeration that prepends an element to another enumeration and skips the last element of the provided enumeration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Enumeration
<URL> The enumeration from which the next elements should be pulled.private URL
The next element to return from this enumeration ornull
if such an element does not exist. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PrependingEnumeration
(URL url, Enumeration<URL> enumeration) Creates a new prepending 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
-
nextElement
The next element to return from this enumeration ornull
if such an element does not exist. -
enumeration
The enumeration from which the next elements should be pulled.
-
-
Constructor Details
-
PrependingEnumeration
Creates a new prepending enumeration.- Parameters:
url
- The first element of the enumeration.enumeration
- An enumeration that is used for pulling subsequent urls.
-
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElements
in interfaceEnumeration<URL>
-
nextElement
- Specified by:
nextElement
in interfaceEnumeration<URL>
-