Interface Suggestion


@Deprecated public interface Suggestion
Deprecated.
Suggestion
Example to create an instance using the builder pattern

     Suggestion suggestion = Suggestion.builder()
             .text("{text}")
             .build()
 
  • Method Details

    • getText

      @NotNull @NotNull String getText()
      Deprecated.

      The suggested text.

      Returns:
      text
    • setText

      void setText(String text)
      Deprecated.

      The suggested text.

      Parameters:
      text - value to be set
    • of

      static Suggestion of()
      Deprecated.
      factory method
      Returns:
      instance of Suggestion
    • of

      static Suggestion of(Suggestion template)
      Deprecated.
      factory method to create a shallow copy Suggestion
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

      Suggestion copyDeep()
      Deprecated.
    • deepCopy

      @Nullable static Suggestion deepCopy(@Nullable Suggestion template)
      Deprecated.
      factory method to create a deep copy of Suggestion
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static SuggestionBuilder builder()
      Deprecated.
      builder factory method for Suggestion
      Returns:
      builder
    • builder

      static SuggestionBuilder builder(Suggestion template)
      Deprecated.
      create builder for Suggestion instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withSuggestion

      default <T> T withSuggestion(Function<Suggestion,T> helper)
      Deprecated.
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static tools.jackson.core.type.TypeReference<Suggestion> typeReference()
      Deprecated.
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference