当前位置: 首页>>代码示例>>Java>>正文


Java JsonSerializer类代码示例

本文整理汇总了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;
}
 
开发者ID:eanfs,项目名称:MVVM-Android-CleanArchitecture,代码行数:19,代码来源:UserCacheImpl.java

示例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;
}
 
开发者ID:nanyi5452,项目名称:cleanDemo,代码行数:20,代码来源:UserCacheImpl.java

示例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;
}
 
开发者ID:zhengxiaopeng,项目名称:Rocko-Android-Demos,代码行数:19,代码来源:UserCacheImpl.java

示例4: setSerializer

import com.fernandocejas.android10.sample.data.cache.serializer.JsonSerializer; //导入依赖的package包/类
public void setSerializer(JsonSerializer serializer) {
    this.serializer = serializer;
}
 
开发者ID:eanfs,项目名称:MVVM-Android-CleanArchitecture,代码行数:4,代码来源:UserCacheImpl.java

示例5: setSerializer

import com.fernandocejas.android10.sample.data.cache.serializer.JsonSerializer; //导入依赖的package包/类
public void setSerializer(JsonSerializer serializer) {
	this.serializer = serializer;
}
 
开发者ID:zhengxiaopeng,项目名称:Rocko-Android-Demos,代码行数:4,代码来源:UserCacheImpl.java


注:本文中的com.fernandocejas.android10.sample.data.cache.serializer.JsonSerializer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。