| Modifier and Type | Field and Description |
|---|---|
| private final Comparator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Map | sort(final Class<T>
the bean class that contains all the properties type, final Map<K, V> the map to sort, key is the property name, value the
nameMap)PropertyDescriptorImplements com. |
| comparator | back to summary |
|---|---|
| private final Comparator<T> comparator | |
| ComparingPropertySorter | back to summary |
|---|---|
| public ComparingPropertySorter(final Comparator<T> propertyNameComparator) | |
| sort | back to summary |
|---|---|
| public Map Implements com. Doc from com. Sort the properties of a bean type. The method will be called with the class type that contains all the properties and a Map that retains the order in which the elements have been added. The sequence in which elements are returned by an iterator defines the processing order of the properties. An implementation may create a different Map with similar semantic, add all elements of the original map and return the new one.
| |