Back to project page android-model-record.
The source code is released under:
MIT License
If you think the Android project android-model-record listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.fanpics.opensource.android.modelrecord.configuration; // w ww .j a va2 s. co m import com.fanpics.opensource.android.modelrecord.RecordCache; public class SingleRecordConfiguration<T> extends BaseRecordConfiguration<T> { private RecordCache<T> cache; public SingleRecordConfiguration() { } public SingleRecordConfiguration(Type type) { super(type); } public void setCache(RecordCache<T> cache) { this.cache = cache; } public RecordCache<T> getCache() { return cache; } public void removeCache() { cache = null; } @Override protected boolean hasCache() { return cache != null; } }