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)
PropertySortersort in interface PropertySortertype - the bean class that contains all the propertiesnameMap - the map to sort, key is the property name, value the
PropertyDescriptorCopyright © 2004–2024 XStream. All rights reserved.