public class SortableFieldKeySorter extends Object implements FieldKeySorter, Caching
Constructor and Description |
---|
SortableFieldKeySorter() |
Modifier and Type | Method and Description |
---|---|
void |
flushCache() |
void |
registerFieldOrder(Class type,
String[] fields)
Registers the field order to use for a specific type.
|
Map |
sort(Class type,
Map keyedByFieldKey)
Sort the fields of a type.
|
public Map sort(Class type, 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(Class type, String[] fields)
ConversionException
during
the serialization process.type
- the typefields
- the field orderpublic void flushCache()
flushCache
in interface Caching
Copyright © 2004–2017 XStream. All rights reserved.