public static <T>MenuResult<T> quit(){
  return new MenuResult<>(Type.QUIT,Collections.<T>emptyList());
}

public static < T > MenuResult < T > quit ( ) { return new MenuResult < > ( Type . QUIT , Collections . < T > emptyList ( ) ) ; }
creates a new menu result indicating that the user chose to quit the application and cancel all outstanding tasks .
