Class LongRioSetting

  • All Implemented Interfaces:
    java.io.Serializable, RioSetting<java.lang.Long>

    public class LongRioSetting
    extends AbstractRioSetting<java.lang.Long>
    A RioSetting with a Long value. The given default for the setting can be overriden by means of a system property with a name equal to the setting key.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      LongRioSetting​(java.lang.String key, java.lang.String description, java.lang.Long defaultValue)  
    • Constructor Detail

      • LongRioSetting

        public LongRioSetting​(java.lang.String key,
                              java.lang.String description,
                              java.lang.Long defaultValue)
    • Method Detail

      • convert

        public java.lang.Long convert​(java.lang.String stringValue)
        Description copied from interface: RioSetting
        Attempts to convert from a string to a type-safe representation based on the generic type of this setting.
        Parameters:
        stringValue - a string representation of a value for this setting.
        Returns:
        The corresponding object of type T for the supplied string value.