Class Entry
java.lang.Object
org.codehaus.classworlds.Entry
- All Implemented Interfaces:
Comparable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompare this entry to another for relative ordering.booleanTest this entry for equality to another.(package private) StringRetrieve the page name.(package private) ClassRealmgetRealm()Retrieve the realm.inthashCode()Consistent withequals(java.lang.Object), this method creates a hashCode based on the packagename.(package private) booleanDetermine if the classname matches the package described by this entry.
-
Field Details
-
realm
-
pkgName
-
-
Constructor Details
-
Entry
Entry(ClassRealm realm, String pkgName)
-
-
Method Details
-
getRealm
-
getPackageName
-
matches
Determine if the classname matches the package described by this entry.- Parameters:
classname- The class name to test.- Returns:
trueif 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:
compareToin interfaceComparable- Parameters:
thatObj- 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(java.lang.Object), 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.
-