public class ComparingPropertySorter extends java.lang.Object implements PropertySorter
Constructor and Description |
---|
ComparingPropertySorter(java.util.Comparator propertyNameComparator) |
Modifier and Type | Method and Description |
---|---|
java.util.Map |
sort(java.lang.Class type,
java.util.Map nameMap)
Sort the properties of a bean type.
|
public ComparingPropertySorter(java.util.Comparator propertyNameComparator)
public java.util.Map sort(java.lang.Class type, java.util.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–2022 XStream. All rights reserved.