public class ComparingPropertySorter extends Object implements PropertySorter
Constructor and Description |
---|
ComparingPropertySorter(Comparator propertyNameComparator) |
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–2015 XStream. All rights reserved.