接口 JsonWriter.NameProcessor
- 封闭接口:
JsonWriter<T>
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Callback interface that can be
applied to JsonWriter.Members to change names or filter members.-
方法概要
修饰符和类型方法说明static JsonWriter.NameProcessorof(UnaryOperator<String> operation) Factory method to create a newJsonWriter.NameProcessorfor the given operation.processName(JsonWriter.MemberPath path, String existingName) Return a new name for the JSON member ornullif the member should be filtered entirely.
-
方法详细资料
-
processName
Return a new name for the JSON member ornullif the member should be filtered entirely.- 参数:
path- the path of the memberexistingName- the existing and possibly already processed name.- 返回:
- the new name
-
of
Factory method to create a newJsonWriter.NameProcessorfor the given operation.- 参数:
operation- the operation to apply- 返回:
- a new
JsonWriter.NameProcessorinstance
-