android inventory agent 1.0.0

Code documentation

--- layout: codeDocumentation --- --- layout: codeDocumentation --- LocalStorage
org.glpi.inventory.agent.utils

Class LocalStorage

  • java.lang.Object
    • org.glpi.inventory.agent.utils.LocalStorage


  • public class LocalStorage
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      LocalStorage(android.content.Context context)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void clearSettings()
      Remove all the values from the preferences
      void deleteKeyCache(java.lang.String key)
      Remove the key cache
      java.lang.String getData(java.lang.String key)
      Get the data matching the given argument
      java.lang.Boolean getDataBoolean(java.lang.String key) 
      java.lang.Long getDataLong(java.lang.String key) 
      void setData(java.lang.String key, java.lang.String value)
      Set the data given in the argument to the Shared Preferences
      void setDataBoolean(java.lang.String key, java.lang.Boolean value) 
      void setDataLong(java.lang.String key, long value) 
      • Methods inherited from class java.lang.Object

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

      • LocalStorage

        public LocalStorage(android.content.Context context)
        Constructor
        Parameters:
        context -
    • Method Detail

      • getData

        public java.lang.String getData(java.lang.String key)
        Get the data matching the given argument
        Parameters:
        key -
        Returns:
        string the data
      • setData

        public void setData(java.lang.String key,
                            java.lang.String value)
        Set the data given in the argument to the Shared Preferences
        Parameters:
        key -
        value -
      • setDataBoolean

        public void setDataBoolean(java.lang.String key,
                                   java.lang.Boolean value)
      • getDataBoolean

        public java.lang.Boolean getDataBoolean(java.lang.String key)
      • setDataLong

        public void setDataLong(java.lang.String key,
                                long value)
      • getDataLong

        public java.lang.Long getDataLong(java.lang.String key)
      • clearSettings

        public void clearSettings()
        Remove all the values from the preferences
      • deleteKeyCache

        public void deleteKeyCache(java.lang.String key)
        Remove the key cache
        Parameters:
        key - value to remove
Back to top