| java.lang.Object com.projity.util.DataUtils
DataUtils | public class DataUtils (Code) | | Utility functions for data manipulation
|
Method Summary | |
public static Object | extractObjectOfClass(Object object, Class objectClass) | public static void | extractObjectsOfClassFromNodeList(Collection result, Collection nodeList, Class objectClass) | public static void | forAllDo(Iterator i, Closure closure) | public static void | forAllDo(Closure closure, boolean all, Collection allList, Collection nodeList, Class clazz) | public static void | forAllDo(Closure closure, boolean all, Iterator allIterator, Collection nodeList, Class clazz) | public static boolean | nodeListContainsImplOfType(Collection nodeList, Class clazz) | public static String | stringList(Collection collection) | public static String | stringListWithMaxAndMessage(Collection collection, int maxInList, String message) |
forAllDo | public static void forAllDo(Iterator i, Closure closure)(Code) | | |
forAllDo | public static void forAllDo(Closure closure, boolean all, Collection allList, Collection nodeList, Class clazz)(Code) | | Apply a closure to one of the collections: if all is true, then use the allList, otherwise
use the nodeList, and extract only the impls of the type clazz (or subclasses of clazz)
Parameters: closure - Parameters: all - Parameters: allList - Parameters: nodeList - Parameters: clazz - |
nodeListContainsImplOfType | public static boolean nodeListContainsImplOfType(Collection nodeList, Class clazz)(Code) | | |
|
|