Class SaUserSettingImpl

  • All Implemented Interfaces:
    SaSetting, SaUserSetting, java.io.Serializable

    public class SaUserSettingImpl
    extends java.lang.Object
    implements SaUserSetting, java.io.Serializable
    System setting implementation. This class holds all system settings accessible by the class name of the specific SaUserSettingType.
    Author:
    mak
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SaUserSettingImpl​(java.lang.String key)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAccessKey()
      Returns the access key the setting is associated to.
      <T extends SaUserSettingType>
      T
      getEntry​(java.lang.Class<T> klass)
      Returns the specific user setting.
      <T extends SaUserSettingType>
      boolean
      hasEntry​(java.lang.Class<T> klass)
      Checks, if the system setting for the given key exists.
      <T extends SaUserSettingType>
      void
      setEntry​(java.lang.Class<T> klass, T setting)
      Sets the user setting.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SaUserSettingImpl

        public SaUserSettingImpl​(java.lang.String key)
        Constructor.
        Parameters:
        key - the access key
    • Method Detail

      • hasEntry

        public final <T extends SaUserSettingType> boolean hasEntry​(java.lang.Class<T> klass)
        Checks, if the system setting for the given key exists.
        Specified by:
        hasEntry in interface SaUserSetting
        Type Parameters:
        T - specialized SaUserSettingType
        Parameters:
        klass - class
        Returns:
        true if a system setting exists to the given key, otherwise false
      • getAccessKey

        public final java.lang.String getAccessKey()
        Returns the access key the setting is associated to.
        Specified by:
        getAccessKey in interface SaSetting
        Returns:
        the access key