Package org.springframework.boot.json
Interface JsonWriter.NameProcessor
- Enclosing interface:
- JsonWriter<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback interface that can be
applied to JsonWriter.Members to change names or filter members.-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Method Details
-
processName
Return a new name for the JSON member ornullif the member should be filtered entirely.- Parameters:
path- the path of the memberexistingName- the existing and possibly already processed name.- Returns:
- the new name
-
of
Factory method to create a newJsonWriter.NameProcessorfor the given operation.- Parameters:
operation- the operation to apply- Returns:
- a new
JsonWriter.NameProcessorinstance
-