Fudi SharePreference

Additional

Language
Java
Version
Rev03 (Oct 1, 2018)
Created
Oct 1, 2018
Updated
Jun 2, 2019
Owner
Romell D.Z. (romellfudi)
Contributor
Romell D.Z. (romellfudi)
1
Activity
Badge
Generate
Download
Source code
APK file

Commercial

Android API from store Any kind of Data

by Romell Domínguez

latestVersion es 1.0.a

Add the following in your app's build.gradle file:

repositories {
    jcenter()
}
dependencies {
    implementation 'com.romellfudi.store:fudi-store:{latestVersion}'
}

How implement

Your class tag with JsonIgnoreProperties annotation and implements set & get:

@JsonIgnoreProperties(ignoreUnknown = true)
public class ObjectBean {
    private String data;
    private ArrayList<ObjectDetailBean> objectDetailBeans;
    // need getters
    ...
}

In case attributes don't have setter method, the reference stores nullvalue

Save a singleton object:

SharePreferenced.save(myObjectClass,MyClass.class);

Save different objects:

SharePreferenced.save(myObjectClass,MyClass.class,"OBJ1");

License

Copyright 2016 Romell D.Z.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

2016, November