Package com.gentlyweb.utils
Class GeneralCollector
java.lang.Object
com.gentlyweb.utils.GeneralCollector
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
collect
(Collection objects, Collection retData) void
collect
(Collection objects, List retData) void
collect
(List objects, Collection retData) void
void
collect
(Map objects, String type, Collection retData) void
void
getField()
Get a field given a field name.void
Set the field that we collect if you readd the same field then the type is just updated.
-
Field Details
-
KEYS
- See Also:
-
VALUES
- See Also:
-
-
Constructor Details
-
GeneralCollector
-
GeneralCollector
-
-
Method Details
-
collect
public void collect(Map objects, String type, List retData) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException -
collect
public void collect(Map objects, String type, Collection retData) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException -
collect
public void collect(Map objects, String type, Map retData) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException -
collect
public void collect(Collection objects, Collection retData) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException -
collect
public void collect(Collection objects, List retData) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException -
collect
public void collect(List objects, List retData) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException -
collect
public void collect(List objects, Collection retData) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException -
setField
Set the field that we collect if you readd the same field then the type is just updated.- Parameters:
field
- The field to sort on.- Throws:
IllegalArgumentException
- If we can't find the field in the class/class chain passed into the constructor.
-
getField
Get a field given a field name.- Returns:
- The field or null if the field hasn't been set yet.
-