Class Preference

java.lang.Object
com.priint.pubserverapi.preferences.Preference

public class Preference extends Object
Represents a user preference with a name, value, description, and type.
  • Constructor Details

    • Preference

      public Preference()
  • Method Details

    • getKeyName

      public String getKeyName()
      Gets the name of the preference.
      Returns:
      the name of the preference
    • setKeyName

      public void setKeyName(String keyName)
      Sets the name of the preference.
      Parameters:
      keyName - the name to set
    • getValue

      public String getValue()
      Gets the value of the preference.
      Returns:
      the value of the preference
    • setValue

      public void setValue(String value)
      Sets the value of the preference.
      Parameters:
      value - the value to set
    • getType

      public PreferenceType getType()
      Gets the type of the preference.
      Returns:
      the type of the preference
    • setType

      public void setType(PreferenceType type)
      Sets the type of the preference.
      Parameters:
      type - the type to set
    • getDescription

      public String getDescription()
      Gets the description of the preference if exists, otherwise it returns null
      Returns:
      the description of the preference