GCX-HCI / tray

a SharedPreferences replacement for Android with multiprocess support
Apache License 2.0
2.29k stars 273 forks source link

Contains method #66

Closed StefMa closed 8 years ago

StefMa commented 8 years ago

Currently it is not possible to check if a key exist in Tray. We have to do something like:

       try {
            return mPreference.getBoolean(key)
        } catch (ItemNotFoundException e) {
            return false;
        }

It would be great if we have a method like contains(key) to check if a key exists.

StefMa commented 8 years ago

Can be closed since #74 is merged :)