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.NameProcessor
of
(UnaryOperator<String> operation) Factory method to create a newJsonWriter.NameProcessor
for the given operation.processName
(JsonWriter.MemberPath path, String existingName) Return a new name for the JSON member ornull
if the member should be filtered entirely.
-
Method Details
-
processName
Return a new name for the JSON member ornull
if 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.NameProcessor
for the given operation.- Parameters:
operation
- the operation to apply- Returns:
- a new
JsonWriter.NameProcessor
instance
-