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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PrependingEnumeration(URL url, Enumeration<URL> enumeration)
Creates a new prepending enumeration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreElements()
URL
nextElement()
-
-
-
Constructor Detail
-
PrependingEnumeration
protected PrependingEnumeration(URL url, Enumeration<URL> enumeration)
Creates a new prepending enumeration.- Parameters:
url
- The first element of the enumeration.enumeration
- An enumeration that is used for pulling subsequent urls.
-
-
Method Detail
-
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interfaceEnumeration<URL>
-
nextElement
public URL nextElement()
- Specified by:
nextElement
in interfaceEnumeration<URL>
-
-