public class SortableFieldKeySorter extends Object implements FieldKeySorter
| Constructor and Description |
|---|
SortableFieldKeySorter() |
| Modifier and Type | Method and Description |
|---|---|
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)
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(Class type, String[] fields)
type - the typefields - the field orderCopyright © 2021 Internet2. All rights reserved.