/* * ... on the other hand, this is just clumsy, but it is at least * consistent with getResponseId() and likewise a bit cleaner. */ static Command constantFor(int ordinal) { return UniqueCommandOverride.enumFor(ordinal); }
/* * It's not entirely necessary to have these here; we could just have * Dialog call the static methods in UniqueCommandOverride directly, but * the code seems a bit to have this as instance method here... */ int getCommandId() { return UniqueCommandOverride.numOf(this); }