AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
Public 成员函数 | 所有成员列表
com.google.gson.FieldNamingStrategy接口 参考
类 com.google.gson.FieldNamingStrategy 继承关系图:
com.google.gson.FieldNamingPolicy

Public 成员函数

String translateName (Field f)
 

详细描述

A mechanism for providing custom field naming in Gson. This allows the client code to translate field names into a particular convention that is not supported as a normal Java field declaration rules. For example, Java does not support "-" characters in a field name.

作者
Inderjeet Singh
Joel Leitch
自从
1.3

成员函数说明

String com.google.gson.FieldNamingStrategy.translateName ( Field  f)

Translates the field name into its JSON field name representation.

参数
fthe field object that we are translating
返回
the translated field name.
自从
1.3

该接口的文档由以下文件生成: