boolean (final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final KeyboardModifierGestureShortcut that = (KeyboardModifierGestureShortcut)o; if (myStroke != null ? !myStroke.equals(that.myStroke) : that.myStroke != null) return false; if (myType != that.myType) return false; return true; }