Beispiel #1
0
 /**
  * Extracts values for given property names from all objects in the specified collection
  *
  * @param collection Collection that contains the objects from where property value needs to be
  *     extracted
  * @param propNamesInContainedObj the name of the property for which value needs to be extracted
  * @return Collection of extracted values
  */
 public static Collection collect(
     final Collection collection, final String[] propNamesInContainedObj) {
   return BeanUtil.collect(collection, propNamesInContainedObj, false);
 }
Beispiel #2
0
 /**
  * Extracts values for given property names from all objects in the specified array
  *
  * @param objArray the array that contains the objects from where property value needs to be
  *     extracted
  * @param propNamesInContainedObj the name of the property for which value needs to be extracted
  * @param appendPropName if <code>true</code>, property names will be appended to the output
  * @return Collection of extracted values
  */
 public static Collection collect(
     final Object[] objArray,
     final String[] propNamesInContainedObj,
     final boolean appendPropName) {
   return BeanUtil.collect(Arrays.asList(objArray), propNamesInContainedObj, appendPropName);
 }