org.codehaus.plexus.classworlds.realm

Class Entry

Implemented Interfaces:
Comparable

public class Entry
extends java.lang.Object
implements Comparable

Import description entry.
Author:
bob mcwhirter

Method Summary

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.

Method Details

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.

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

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.

Parameters:
thatObj - The object to compare
Returns:
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.