public class SortableFieldKeySorter extends java.lang.Object implements FieldKeySorter
| Constructor and Description |
|---|
SortableFieldKeySorter() |
| Modifier and Type | Method and Description |
|---|---|
void |
registerFieldOrder(java.lang.Class type,
java.lang.String[] fields)
Registers the field order to use for a specific type.
|
java.util.Map |
sort(java.lang.Class type,
java.util.Map keyedByFieldKey)
Sort the fields of a type.
|
public java.util.Map sort(java.lang.Class type,
java.util.Map keyedByFieldKey)
FieldKeySortersort in interface FieldKeySortertype - the class that contains all the fieldskeyedByFieldKey - a Map containing a FieldKey as key element and a
Field as value.public void registerFieldOrder(java.lang.Class type,
java.lang.String[] fields)
type - the typefields - the field orderJoe Walnes, http://xstream.codehaus.org/