Add hashcode

This commit is contained in:
dsyer
2007-11-05 11:27:11 +00:00
parent 2e20f406f2
commit aaa1c6427e

View File

@@ -139,6 +139,15 @@ public class ExitStatus implements Serializable {
return toString().equals(obj.toString());
}
/**
* Compatible with the equals implementation.
*
* @see java.lang.Object#hashCode()
*/
public int hashCode() {
return toString().hashCode();
}
/**
* Add an exit code to an existing {@link ExitStatus}.
*