Class SettingValue<T>

java.lang.Object
org.exoplatform.commons.api.settings.SettingValue<T>
Type Parameters:
T - Object Type of the setting value object.
All Implemented Interfaces:
Serializable

public class SettingValue<T> extends Object implements Serializable
See Also:
eXo level API
Experimental
  • Constructor Details

    • SettingValue

      public SettingValue(T value)
      Creates a setting value object with a specified value type.
      Parameters:
      value - The value type.
      eXo level API
      Experimental
  • Method Details

    • getValue

      public T getValue()
      Gets the value of the setting object.
      Returns:
      The value with the specified object type.
      eXo level API
      Experimental
    • create

      public static SettingValue<String> create(String value)
      Creates a setting value object of the String type.
      Parameters:
      value - The String value.
      Returns:
      The setting value object of the String type.
      eXo level API
      Experimental
    • create

      public static SettingValue<Long> create(Long value)
      Creates a setting value object of the Long type.
      Parameters:
      value - The Long value.
      Returns:
      The setting value object of the Long type.
      eXo level API
      Experimental
    • create

      public static SettingValue<Double> create(Double value)
      Creates a setting value object of the Double type.
      Parameters:
      value - The Double value.
      Returns:
      The setting value object of the Double type.
      eXo level API
      Experimental
    • create

      public static SettingValue<Boolean> create(Boolean value)
      Creates a setting value object of the Boolean type.
      Parameters:
      value - The Boolean value.
      Returns:
      The setting value object of the Boolean type.
      eXo level API
      Experimental