Java Code Examples for com.gianlu.commonutils.preferences.Prefs#Key

The following examples show how to use com.gianlu.commonutils.preferences.Prefs#Key . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JsonStoring.java    From CommonUtils with Apache License 2.0 4 votes vote down vote up
public final boolean isJsonArrayEmpty(@NonNull Prefs.Key key) throws JSONException {
    return isJsonArrayEmpty(key.key());
}
 
Example 2
Source File: JsonStoring.java    From CommonUtils with Apache License 2.0 4 votes vote down vote up
@Nullable
public final JSONArray getJsonArray(@NonNull Prefs.Key key) throws JSONException {
    return getJsonArray(key.key());
}
 
Example 3
Source File: JsonStoring.java    From CommonUtils with Apache License 2.0 4 votes vote down vote up
@Nullable
public final JSONObject getJsonObject(@NonNull Prefs.Key key) throws JSONException {
    return getJsonObject(key.key());
}
 
Example 4
Source File: JsonStoring.java    From CommonUtils with Apache License 2.0 4 votes vote down vote up
public final void putJsonArray(@NonNull Prefs.Key key, JSONArray array) throws JSONException {
    putJsonArray(key.key(), array);
}
 
Example 5
Source File: JsonStoring.java    From CommonUtils with Apache License 2.0 4 votes vote down vote up
public final void putJsonObject(@NonNull Prefs.Key key, JSONObject obj) throws JSONException {
    putJsonObject(key.key(), obj);
}