public class CustomerExclusionStrategy
extends java.lang.Object
implements com.google.gson.ExclusionStrategy
CustomerExclusionStrategy
功能描述: 自定义转json策略
创建人: 常君
创建日期: 2015-1-16 下午12:00:04
开发环境: JDK6.0| Constructor and Description |
|---|
CustomerExclusionStrategy(java.util.List<java.lang.String> fieldNames,
java.lang.Boolean isExclude) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldSkipClass(java.lang.Class<?> arg0) |
boolean |
shouldSkipField(com.google.gson.FieldAttributes field) |
public CustomerExclusionStrategy(java.util.List<java.lang.String> fieldNames,
java.lang.Boolean isExclude)
public boolean shouldSkipClass(java.lang.Class<?> arg0)
shouldSkipClass in interface com.google.gson.ExclusionStrategypublic boolean shouldSkipField(com.google.gson.FieldAttributes field)
shouldSkipField in interface com.google.gson.ExclusionStrategy