记录类的使用
org.springframework.boot.json.JsonWriter.MemberPath
使用JsonWriter.MemberPath的程序包
-
org.springframework.boot.json中JsonWriter.MemberPath的使用
修饰符和类型方法说明JsonWriter.MemberPath.child
(int index) Create a new child from this path with the specified index.Create a new child from this path with the specified name.static JsonWriter.MemberPath
Create a newJsonWriter.MemberPath
instance from the given string.JsonWriter.MemberPath.parent()
返回parent
记录组件的值。修饰符和类型方法说明JsonWriter.NameProcessor.processName
(JsonWriter.MemberPath path, String existingName) Return a new name for the JSON member ornull
if the member should be filtered entirely.JsonWriter.ValueProcessor.processValue
(JsonWriter.MemberPath path, T value) Process the value at the given path.类型变量类型为JsonWriter.MemberPath的org.springframework.boot.json中的方法参数修饰符和类型方法说明void
JsonWriter.Members.applyingPathFilter
(Predicate<JsonWriter.MemberPath> predicate) Add a filter that will be used to restrict the members written to the JSON.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.