class Entry
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
pkgName |
private ClassRealm |
realm |
Constructor and Description |
---|
Entry(ClassRealm realm,
java.lang.String pkgName) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object thatObj)
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.String |
getPackageName()
Retrieve the page name.
|
(package private) ClassRealm |
getRealm()
Retrieve the realm.
|
int |
hashCode()
Consistent with
equals(java.lang.Object) , this method creates a hashCode
based on the packagename. |
(package private) boolean |
matches(java.lang.String classname)
Determine if the classname matches the package
described by this entry.
|
private final ClassRealm realm
private final java.lang.String pkgName
Entry(ClassRealm realm, java.lang.String pkgName)
ClassRealm getRealm()
java.lang.String getPackageName()
boolean matches(java.lang.String classname)
classname
- The class name to test.true
if this entry matches the
classname, otherwise false
.public int compareTo(java.lang.Object thatObj)
compareTo
in interface java.lang.Comparable
thatObj
- The object to compare.public boolean equals(java.lang.Object thatObj)
compareTo(java.lang.Object)
, this method tests
for equality purely on the package name.
equals
in class java.lang.Object
thatObj
- 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.Object