| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final FieldKey[] | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | registerFieldOrder(final Class<T>
the type type, final String[] the field order fields)Registers the field order to use for a specific type. |
| public Map | sort(final Class<T>
the class that contains all the fields type, final Map<K, V> a Map containing a keyedByFieldKey)FieldKey as key element and a
java. as value.Implements com. |
| EMPTY_FIELD_KEY_ARRAY | back to summary |
|---|---|
| private static final FieldKey[] EMPTY_FIELD_KEY_ARRAY | |
| map | back to summary |
|---|---|
| private final Map<K, V> map | |
| SortableFieldKeySorter | back to summary |
|---|---|
| public SortableFieldKeySorter() | |
| flushCache | back to summary |
|---|---|
| public void flushCache() Implements com. | |
| registerFieldOrder | back to summary |
|---|---|
| public void registerFieldOrder(final Class<T> type, final String[] fields) Registers the field order to use for a specific type. This will not affect any of the type's super or sub
classes. If you skip a field which will be serialized, XStream will thrown a | |
| sort | back to summary |
|---|---|
| public Map Implements com. Doc from com. Sort the fields of a type. The method will be called with the class type that contains all the fields and a Map that retains the order in which the elements have been added. The sequence in which elements are returned by an iterator defines the processing order of the fields. An implementation may create a different Map with similar semantic, add all elements of the original map and return the new one.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(final String
the first object to be compared. first, final String the second object to be compared. second)Implements java. |
| public int | compare(final Object
the first object to be compared. firstObject, final Object the second object to be compared. secondObject)Implements java. |
| fieldOrder | back to summary |
|---|---|
| private final String[] fieldOrder | |
| type | back to summary |
|---|---|
| private final Class<T> type | |
| FieldComparator | back to summary |
|---|---|
| public FieldComparator(final Class<T> type, final String[] fields) | |
| compare | back to summary |
|---|---|
| public int compare(final String first, final String second) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| compare | back to summary |
|---|---|
| public int compare(final Object firstObject, final Object secondObject) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |