org.codehaus.plexus.classworlds.realm
Class Entry
java.lang.Objectorg.codehaus.plexus.classworlds.realm.Entry
- java.lang.Comparable
public class Entry
extends java.lang.Object
implements java.lang.Comparable
Import description entry.
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.
|
int | hashCode()-
Consistent with
equals(Object), this method creates a hashCode
based on the packagename.
|
compareTo
public int compareTo(java.lang.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(java.lang.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.