Object Suggestion.Companion
-
- All Implemented Interfaces:
public class Suggestion.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Suggestion.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final Suggestion
withText(String text)
Returns a Suggestion with the text given. final Suggestion
empty()
Returns an empty Suggestion that will not show up. final Suggestion
create(String text, String tooltip)
Returns a Suggestion with the specified text and tooltip. -
-
Method Detail
-
withText
final Suggestion withText(String text)
Returns a Suggestion with the text given.
-
empty
final Suggestion empty()
Returns an empty Suggestion that will not show up.
-
create
final Suggestion create(String text, String tooltip)
Returns a Suggestion with the specified text and tooltip.
- Parameters:
text
- The main text of the suggestion.tooltip
- The tooltip of the suggestion, the suggestion will not include a tooltip if it is null.
-
-
-
-