Class ObjectUserPreferencesStorage


  • public class ObjectUserPreferencesStorage
    extends java.lang.Object
    UserPreferences implementation of object Storage
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected android.content.SharedPreferences preferences
      Reference of SharedPreferences
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(java.lang.String key)  
      java.lang.Object get​(java.lang.String key)  
      boolean persist​(java.lang.String key, java.io.Serializable value)  
      void remove​(java.lang.String key)  
      • Methods inherited from class java.lang.Object

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

      • preferences

        protected android.content.SharedPreferences preferences
        Reference of SharedPreferences
    • Constructor Detail

      • ObjectUserPreferencesStorage

        public ObjectUserPreferencesStorage​(android.content.Context context)
        Parameters:
        context -
    • Method Detail

      • persist

        public boolean persist​(java.lang.String key,
                               java.io.Serializable value)
      • get

        public java.lang.Object get​(java.lang.String key)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • contains

        public boolean contains​(java.lang.String key)
      • remove

        public void remove​(java.lang.String key)