public class ComparingPropertySorter extends Object implements PropertySorter
Constructor and Description |
---|
ComparingPropertySorter(Comparator propertyNameComparator) |
Modifier and Type | Method and Description |
---|---|
Map |
sort(Class type,
Map nameMap)
Sort the properties of a bean type.
|
public ComparingPropertySorter(Comparator propertyNameComparator)
public Map sort(Class type, Map nameMap)
PropertySorter
sort
in interface PropertySorter
type
- the bean class that contains all the propertiesnameMap
- the map to sort, key is the property name, value the
PropertyDescriptor
Copyright © 2004–2016 XStream. All rights reserved.