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)
FieldKeySorter
sort
in interface FieldKeySorter
type
- 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 orderCopyright © 2004-2012 XStream. All Rights Reserved.