X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTCommand.java;h=bacc6f15050294abb5b2f298d17e087afd6f43d3;hb=92554d64c21c6a477fd23a06ca3a64a542b622a3;hp=62ff2bec9e22f37e09ef149c3a1ffab553e650f7;hpb=d4a29741fb714f71fd47c9c6e8ae93b57f015821;p=fanfix.git diff --git a/src/jexer/TCommand.java b/src/jexer/TCommand.java index 62ff2be..bacc6f1 100644 --- a/src/jexer/TCommand.java +++ b/src/jexer/TCommand.java @@ -158,6 +158,16 @@ public class TCommand { return (type == that.type); } + /** + * Hashcode uses all fields in equals(). + * + * @return the hash + */ + @Override + public int hashCode() { + return type; + } + public static final TCommand cmAbort = new TCommand(ABORT); public static final TCommand cmExit = new TCommand(EXIT); public static final TCommand cmQuit = new TCommand(EXIT);