接口的使用
org.springframework.boot.json.JsonWriter.ValueProcessor
-
org.springframework.boot.json中JsonWriter.ValueProcessor的使用
修饰符和类型方法说明static <T> JsonWriter.ValueProcessor
<T> JsonWriter.ValueProcessor.of
(Class<? extends T> type, UnaryOperator<T> action) Factory method to crate a newJsonWriter.ValueProcessor
that applies the given action.static <T> JsonWriter.ValueProcessor
<T> JsonWriter.ValueProcessor.of
(UnaryOperator<T> action) Factory method to crate a newJsonWriter.ValueProcessor
that applies the given action.default JsonWriter.ValueProcessor
<T> Return a new processor from this one that only applies to member with values that match the given predicate.default JsonWriter.ValueProcessor
<T> JsonWriter.ValueProcessor.whenHasPath
(String path) Return a new processor from this one that only applied to members with the given path.default JsonWriter.ValueProcessor
<T> JsonWriter.ValueProcessor.whenHasPath
(Predicate<JsonWriter.MemberPath> predicate) Return a new processor from this one that only applied to members that match the given path predicate.default JsonWriter.ValueProcessor
<T> JsonWriter.ValueProcessor.whenHasUnescapedPath
(String path) Return a new processor from this one that only applied to members with the given path (ignoring escape characters).default JsonWriter.ValueProcessor
<T> JsonWriter.ValueProcessor.whenInstanceOf
(Class<?> type) Return a new processor from this one that only applies to member with values of the given type.修饰符和类型方法说明void
JsonWriter.Members.applyingValueProcessor
(JsonWriter.ValueProcessor<?> valueProcessor) Add the aJsonWriter.ValueProcessor
to be applied when the JSON is written.