public class CollectionUtil extends Object
| 构造器和说明 |
|---|
CollectionUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Map<String,Object>> |
getSamePropertyList(List<Map<String,Object>> list,
String propertyName,
String propertyVal)
获取List中指定属性的值为propertyVal的列表
|
static <T> List<T> |
getSamePropertyListBean(Collection<T> list,
String propertyName,
Object propertyVal)
根据传入的属性名称、遍历list返回属性值与propertyVal相等的记录
|
public static List<Map<String,Object>> getSamePropertyList(List<Map<String,Object>> list, String propertyName, String propertyVal)
propertyName - propertyVal - public static <T> List<T> getSamePropertyListBean(Collection<T> list, String propertyName, Object propertyVal)
list - propertyName - propertyVal - Copyright © 2023. All rights reserved.