public class DynamicDTOComparator<T> extends ComparatorAbstract<T>
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Method |
getter |
Constructor and Description |
---|
DynamicDTOComparator(java.lang.Class<T> dtoClass,
Creates a new instance of DynamicDTOComparator.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(T first, |
private int |
invokeGettersAndCompareValues(T first,
Invokes getters of DTOs and compare values returned by getter.
|
compareByNulls, isAscending
dtoClass
- attributeName
- ascending
- java.lang.SecurityException
java.lang.NoSuchMethodException