public class GeneralCollector extends Object
| 构造器和说明 |
|---|
GeneralCollector(Class c) |
GeneralCollector(Class c,
String field) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
collect(Collection objects,
Collection retData) |
void |
collect(Collection objects,
List retData) |
void |
collect(List objects,
Collection retData) |
void |
collect(List objects,
List retData) |
void |
collect(Map objects,
String type,
Collection retData) |
void |
collect(Map objects,
String type,
List retData) |
void |
collect(Map objects,
String type,
Map retData) |
String |
getField()
Get a field given a field name.
|
void |
setField(String field)
Set the field that we collect if you readd the same field then
the type is just updated.
|
public GeneralCollector(Class c)
public void collect(Map objects, String type, List retData) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
public void collect(Map objects, String type, Collection retData) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
public void collect(Map objects, String type, Map retData) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
public void collect(Collection objects, Collection retData) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
public void collect(Collection objects, List retData) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
public void collect(List objects, List retData) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
public void collect(List objects, Collection retData) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
public void setField(String field) throws IllegalArgumentException
field - The field to sort on.IllegalArgumentException - If we can't find the field in the
class/class chain passed into the constructor.public String getField()
Copyright © 2021. All rights reserved.