public class OmniAccessor extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
get(Object target,
String queryPath)
获取所有符合搜索路径的成员
|
static <T> T |
getFirst(Object target,
String queryPath)
获取第一个符合搜索路径的成员
|
static int |
set(Object target,
String queryPath,
Object value)
为符合搜索路径的成员赋值
|
public static <T> T getFirst(Object target, String queryPath)
target - 目标对象queryPath - 搜索路径public static <T> List<T> get(Object target, String queryPath)
target - 目标对象queryPath - 搜索路径Copyright © 2021. All rights reserved.