public abstract class ListUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
distinct(List<T> pList)
리스트에서 중복 제거
|
static List<Object> |
getPropertyListByBean(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list,
String propertyName)
리스트에 담겨있는 빈들의 멤버변수에 접근하여 모든값을 List형태로 반환한다.
|
static List<List<Object>> |
getPropertyListByBeanInSubList(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list,
String propertyName,
int numberUnit)
리스트에 담겨있는 빈들의 멤버변수에 접근하여 모든값을 분할 할 사이즈 만큼 잘라서 List
|
static <T> List<List<T>> |
getSubList(List<T> list,
int numberUnit)
List
|
static <T> List<Integer> |
toIntegerList(List<T> plist)
List
|
static List<Integer> |
toIntegerList(Object[] array)
Object[]를 List
|
public static <T> List<T> distinct(List<T> pList)
T
- 리스트의 요소 타입pList
- 중복을 제거할 리스트public static List<Object> getPropertyListByBean(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list, String propertyName)
list
- tree구조 리스트propertyName
- 조회할 property Namepublic static List<List<Object>> getPropertyListByBeanInSubList(List<net.ibizsoftware.jwork.component.jtree.model.Node<? extends net.ibizsoftware.jwork.component.jtree.model.JTreeModel>> list, String propertyName, int numberUnit)
list
- tree구조 ListpropertyName
- 조회할 property NamenumberUnit
- 분할할 사이즈public static <T> List<List<T>> getSubList(List<T> list, int numberUnit)
List에 담긴 목록을 분할 할 사이즈 만큼 잘라서 List > 형태로 재구성하여 반환한다.
list
- 분할 할 ListsplitSize
- 분할 사이즈public static <T> List<Integer> toIntegerList(List<T> plist)
List를 List 로 변환한다.
plist
- 변환할 list 배열Copyright © 2025. All rights reserved.