Package net.bytebuddy.dynamic.loading
Class ByteArrayClassLoader.ChildFirst.PrependingEnumeration
- java.lang.Object
-
- net.bytebuddy.dynamic.loading.ByteArrayClassLoader.ChildFirst.PrependingEnumeration
-
- All Implemented Interfaces:
java.util.Enumeration<java.net.URL>
- Enclosing class:
- ByteArrayClassLoader.ChildFirst
protected static class ByteArrayClassLoader.ChildFirst.PrependingEnumeration extends java.lang.Object implements java.util.Enumeration<java.net.URL>
An enumeration that prepends an element to another enumeration and skips the last element of the provided enumeration.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Enumeration<java.net.URL>
enumeration
The enumeration from which the next elements should be pulled.private java.net.URL
nextElement
The next element to return from this enumeration ornull
if such an element does not exist.
-
Constructor Summary
Constructors Modifier Constructor Description protected
PrependingEnumeration(java.net.URL url, java.util.Enumeration<java.net.URL> enumeration)
Creates a new prepending enumeration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreElements()
java.net.URL
nextElement()
-
-
-
Constructor Detail
-
PrependingEnumeration
protected PrependingEnumeration(java.net.URL url, java.util.Enumeration<java.net.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.
-
-