org.codehaus.plexus.classworlds.realm
Class Entry
java.lang.Object
org.codehaus.plexus.classworlds.realm.Entry
- Comparable
public class Entry
extends java.lang.Object
implements Comparable
Import description entry.
int | compareTo(Object thatObj) - Compare this entry to another for relative ordering.
|
boolean | equals(Object thatObj) - Test this entry for equality to another.
|
int | hashCode() -
Consistent with
equals(Object) , this method creates a hashCode
based on the packagename.
|
compareTo
public int compareTo(Object thatObj)
Compare this entry to another for relative ordering.
The natural ordering of Entry objects is reverse-alphabetical
based upon package name.
thatObj
- The object to compare.
- -1 if this object sorts before that object, 0
if they are equal, or 1 if this object sorts
after that object.
equals
public boolean equals(Object thatObj)
Test this entry for equality to another.
Consistent with
compareTo(Object)
, this method tests
for equality purely on the package name.
thatObj
- The object to compare
true
if the two objects are
semantically equivalent, otherwise false
.
hashCode
public int hashCode()
Consistent with
equals(Object)
, this method creates a hashCode
based on the packagename.