本文整理汇总了Java中com.fernandocejas.android10.sample.data.cache.serializer.JsonSerializer类的典型用法代码示例。如果您正苦于以下问题:Java JsonSerializer类的具体用法?Java JsonSerializer怎么用?Java JsonSerializer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JsonSerializer类属于com.fernandocejas.android10.sample.data.cache.serializer包,在下文中一共展示了JsonSerializer类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: UserCacheImpl
import com.fernandocejas.android10.sample.data.cache.serializer.JsonSerializer; //导入依赖的package包/类
/**
* Constructor of the class {@link UserCacheImpl}.
*
* @param context A
* @param userCacheSerializer {@link JsonSerializer} for object serialization.
* @param fileManager {@link FileManager} for saving serialized objects to the file system.
*/
public UserCacheImpl(Context context, JsonSerializer userCacheSerializer,
FileManager fileManager, ThreadExecutor executor) {
if (context == null || userCacheSerializer == null || fileManager == null || executor == null) {
throw new IllegalArgumentException("Invalid null parameter");
}
this.context = context.getApplicationContext();
this.cacheDir = this.context.getCacheDir();
this.serializer = userCacheSerializer;
this.fileManager = fileManager;
this.threadExecutor = executor;
}
示例2: UserCacheImpl
import com.fernandocejas.android10.sample.data.cache.serializer.JsonSerializer; //导入依赖的package包/类
/**
* Constructor of the class {@link UserCacheImpl}.
*
* @param context A
* @param userCacheSerializer {@link JsonSerializer} for object serialization.
* @param fileManager {@link FileManager} for saving serialized objects to the file system.
*/
@Inject
public UserCacheImpl(Context context, JsonSerializer userCacheSerializer,
FileManager fileManager, ThreadExecutor executor) {
if (context == null || userCacheSerializer == null || fileManager == null || executor == null) {
throw new IllegalArgumentException("Invalid null parameter");
}
this.context = context.getApplicationContext();
this.cacheDir = this.context.getCacheDir();
this.serializer = userCacheSerializer;
this.fileManager = fileManager;
this.threadExecutor = executor;
}
示例3: UserCacheImpl
import com.fernandocejas.android10.sample.data.cache.serializer.JsonSerializer; //导入依赖的package包/类
/**
* Constructor of the class {@link UserCacheImpl}.
*
* @param context A
* @param userCacheSerializer {@link JsonSerializer} for object serialization.
* @param fileManager {@link FileManager} for saving serialized objects to the file system.
*/
public UserCacheImpl(Context context, JsonSerializer userCacheSerializer,
FileManager fileManager, ThreadExecutor executor) {
if (context == null || userCacheSerializer == null || fileManager == null || executor == null) {
throw new IllegalArgumentException("Invalid null parameter");
}
this.context = context.getApplicationContext();
this.cacheDir = this.context.getCacheDir();
this.serializer = userCacheSerializer;
this.fileManager = fileManager;
this.threadExecutor = executor;
}
示例4: setSerializer
import com.fernandocejas.android10.sample.data.cache.serializer.JsonSerializer; //导入依赖的package包/类
public void setSerializer(JsonSerializer serializer) {
this.serializer = serializer;
}
示例5: setSerializer
import com.fernandocejas.android10.sample.data.cache.serializer.JsonSerializer; //导入依赖的package包/类
public void setSerializer(JsonSerializer serializer) {
this.serializer = serializer;
}