Class MapBasedPreferenceValues

    • Constructor Detail

      • MapBasedPreferenceValues

        public MapBasedPreferenceValues​(IPreferenceValues delegate,
                                        java.util.Map<java.lang.String,​java.lang.String> values)
        Creates preference values that are backed by the given values Map. The values map is used as is. Subsequent changes to values will be reflected by this preference instance and modifying operations on the preferences will be done on the given map.
      • MapBasedPreferenceValues

        public MapBasedPreferenceValues​(java.util.Map<java.lang.String,​java.lang.String> values)
      • MapBasedPreferenceValues

        public MapBasedPreferenceValues()
    • Method Detail

      • clear

        public void clear()
      • getValues

        public java.util.Map<java.lang.String,​java.lang.String> getValues()
      • put

        public void put​(PreferenceKey key,
                        java.lang.Object value)
        Put the given preference value under the given key into this store. If the value is null, it's being removed from this store.
      • put

        public void put​(java.lang.String key,
                        java.lang.String value)
        Put the given preference value under the given key into this store. If the value is null, it's being removed from this store.
      • put

        public <T> void put​(TypedPreferenceKey<T> key,
                            T value)
        Put the given preference value under the given key into this store. If the value is null, it's being removed from this store.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object