java.lang.Object
org.aksw.jenax.dataaccess.sparql.polyfill.datasource.Suggestion<T>
Type Parameters:
T - The payload type.
All Implemented Interfaces:
Serializable

public class Suggestion<T> extends Object implements Serializable
A basic class with basic attributes that represents a suggestion to a user.
See Also:
  • Field Details

    • name

      protected String name
    • comment

      protected String comment
    • isEnabled

      protected boolean isEnabled
      A suggestion can be disabled by default so that a user can click on it.
    • value

      protected T value
  • Constructor Details

    • Suggestion

      protected Suggestion(String name, String comment, boolean isEnabled, T value)
  • Method Details

    • of

      public static <T> Suggestion<T> of(String name, String comment, T value)
    • of

      public static <T> Suggestion<T> of(String name, String comment, boolean isEnabled, T value)
    • getName

      public String getName()
    • getComment

      public String getComment()
    • isEnabled

      public boolean isEnabled()
    • getValue

      public T getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Object