public class SortableFieldKeySorter extends java.lang.Object implements FieldKeySorter, Caching
| Constructor and Description |
|---|
SortableFieldKeySorter() |
| Modifier and Type | Method and Description |
|---|---|
void |
flushCache() |
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)
ConversionException during
the serialization process.type - the typefields - the field orderpublic void flushCache()
flushCache in interface CachingCopyright © 2004–2024 XStream. All rights reserved.