Interface Suggestion


@API(status=STABLE) public interface Suggestion
  • Method Details

    • suggestion

      static @NonNull Suggestion suggestion(@NonNull String suggestion)
      Returns a simple suggestion that returns the given suggestion
      Parameters:
      suggestion - the suggestion string
      Returns:
      the created suggestion
    • suggestion

      @NonNull String suggestion()
      Returns a string representation of this suggestion, which can be parsed by the parser that suggested it
      Returns:
      the suggestions
    • withSuggestion

      @NonNull Suggestion withSuggestion(@NonNull String suggestion)
      Returns a copy of this suggestion instance using the given suggestion
      Parameters:
      suggestion - the suggestion string
      Returns:
      the new suggestion