程序包 org.jsfr.json
类 Collector
- java.lang.Object
-
- org.jsfr.json.Collector
-
public class Collector extends Object
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ValueBox<Collection<Object>>collectAll(String jsonPath)Collect multiple value into box<T> ValueBox<Collection<T>>collectAll(String jsonPath, Class<T> tClass)Collect multiple value into box<T> ValueBox<Collection<T>>collectAll(JsonPath jsonPath, Class<T> tClass)Collect multiple value into boxValueBox<Object>collectOne(String jsonPath)Collect single value into box<T> ValueBox<T>collectOne(String jsonPath, Class<T> tClass)Collect single value into box<T> ValueBox<T>collectOne(JsonPath jsonPath, Class<T> tClass)Collect single value into boxvoidexec()Collector can only be executed once
-
-
-
方法详细资料
-
collectOne
public <T> ValueBox<T> collectOne(JsonPath jsonPath, Class<T> tClass)
Collect single value into box- 类型参数:
T- target class- 参数:
jsonPath- JsonPath- 返回:
- value box
-
collectOne
public <T> ValueBox<T> collectOne(String jsonPath, Class<T> tClass)
Collect single value into box- 类型参数:
T- target class- 参数:
jsonPath- JsonPath- 返回:
- value box
-
collectOne
public ValueBox<Object> collectOne(String jsonPath)
Collect single value into box- 参数:
jsonPath- JsonPath- 返回:
- value box
-
collectAll
public <T> ValueBox<Collection<T>> collectAll(JsonPath jsonPath, Class<T> tClass)
Collect multiple value into box- 类型参数:
T- target class- 参数:
jsonPath- JsonPath- 返回:
- value box
-
collectAll
public <T> ValueBox<Collection<T>> collectAll(String jsonPath, Class<T> tClass)
Collect multiple value into box- 类型参数:
T- target class- 参数:
jsonPath- JsonPath- 返回:
- value box
-
collectAll
public ValueBox<Collection<Object>> collectAll(String jsonPath)
Collect multiple value into box- 参数:
jsonPath- JsonPath- 返回:
- value box
-
exec
public void exec()
Collector can only be executed once
-
-