| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.ClassLoader |
classLoader |
(package private) java.lang.String |
pkgName |
| Constructor and Description |
|---|
Entry(java.lang.ClassLoader realm,
java.lang.String pkgName) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Entry that)
Compare this entry to another for relative ordering.
|
boolean |
equals(java.lang.Object thatObj)
Test this entry for equality to another.
|
(package private) java.lang.ClassLoader |
getClassLoader()
Retrieve the class loader.
|
(package private) java.lang.String |
getPackageName()
Retrieve the package name.
|
int |
hashCode()
Consistent with
equals(java.lang.Object), this method creates a hashCode
based on the packagename. |
(package private) boolean |
matches(java.lang.String name)
Determine if the class/resource name matches the package
described by this entry.
|
java.lang.String |
toString() |
final java.lang.ClassLoader classLoader
final java.lang.String pkgName
java.lang.ClassLoader getClassLoader()
java.lang.String getPackageName()
boolean matches(java.lang.String name)
name - The class or resource name to test, must not be null.true if this entry matches the
classname, otherwise false.public int compareTo(Entry that)
compareTo in interface java.lang.Comparable<Entry>thatObj - The object to compare.public boolean equals(java.lang.Object thatObj)
compareTo(org.codehaus.plexus.classworlds.realm.Entry), this method tests
for equality purely on the package name.
equals in class java.lang.ObjectthatObj - The object to comparetrue if the two objects are
semantically equivalent, otherwise false.public int hashCode()
equals(java.lang.Object), this method creates a hashCode
based on the packagename.
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object