Class Entry
java.lang.Object
org.codehaus.plexus.classworlds.realm.Entry
- All Implemented Interfaces:
Comparable<Entry>
Import description entry.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ClassLoader
(package private) final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Compare this entry to another for relative ordering.boolean
Test this entry for equality to another.(package private) ClassLoader
Retrieve the class loader.(package private) String
Retrieve the package name.int
hashCode()
Consistent withequals(java.lang.Object)
, this method creates a hashCode based on the packagename.(package private) boolean
Determine if the class/resource name matches the package described by this entry.toString()
-
Field Details
-
classLoader
-
pkgName
-
-
Constructor Details
-
Entry
Entry(ClassLoader realm, String pkgName)
-
-
Method Details
-
getClassLoader
ClassLoader getClassLoader()Retrieve the class loader.- Returns:
- The class loader.
-
getPackageName
String getPackageName()Retrieve the package name.- Returns:
- The package name.
-
matches
Determine if the class/resource name matches the package described by this entry.- Parameters:
name
- The class or resource name to test, must not benull
.- Returns:
true
if this entry matches the classname, otherwisefalse
.
-
compareTo
Compare this entry to another for relative ordering. The natural ordering of Entry objects is reverse-alphabetical based upon package name.- Specified by:
compareTo
in interfaceComparable<Entry>
- Parameters:
that
- The object to compare.- Returns:
- -1 if this object sorts before that object, 0 if they are equal, or 1 if this object sorts after that object.
-
equals
Test this entry for equality to another. Consistent withcompareTo(org.codehaus.plexus.classworlds.realm.Entry)
, this method tests for equality purely on the package name. -
hashCode
public int hashCode()Consistent withequals(java.lang.Object)
, this method creates a hashCode based on the packagename. -
toString
-