/** * 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 {@link ConversionException} during * the serialization process. * * @param type the type * @param fields the field order */ public void registerFieldOrder(final Class type, final String[] fields) { map.put(type, new FieldComparator(type, 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 an StreamException during the * serialization process. * * @param type * the type * @param fields * the field order */ public void registerFieldOrder(Class type, String[] fields) { map.put(type, new FieldComparator(fields)); }
public int compare(final Object firstObject, final Object secondObject) { final FieldKey first = (FieldKey)firstObject, second = (FieldKey)secondObject; return compare(first.getFieldName(), second.getFieldName()); }
public int compare(Object firstObject, Object secondObject) { FieldKey first = (FieldKey)firstObject, second = (FieldKey)secondObject; return compare(first.getFieldName(), second.getFieldName()); }
public int compare(final Object firstObject, final Object secondObject) { final FieldKey first = (FieldKey)firstObject, second = (FieldKey)secondObject; return compare(first.getFieldName(), second.getFieldName()); }
public int compare(final Object firstObject, final Object secondObject) { final FieldKey first = (FieldKey)firstObject, second = (FieldKey)secondObject; return compare(first.getFieldName(), second.getFieldName()); }
/** * 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 {@link ConversionException} during * the serialization process. * * @param type the type * @param fields the field order */ public void registerFieldOrder(final Class type, final String[] fields) { map.put(type, new FieldComparator(type, 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 an StreamException during the * serialization process. * * @param type * the type * @param fields * the field order */ public void registerFieldOrder(Class type, String[] fields) { map.put(type, new FieldComparator(fields)); }
public int compare(Object firstObject, Object secondObject) { FieldKey first = (FieldKey)firstObject, second = (FieldKey)secondObject; return compare(first.getFieldName(), second.getFieldName()); }
/** * 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 {@link ConversionException} during * the serialization process. * * @param type the type * @param fields the field order */ public void registerFieldOrder(final Class type, final String[] fields) { map.put(type, new FieldComparator(type, 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 an StreamException during the serialization process. * * @param type the type * @param fields the field order */ public void registerFieldOrder(Class type, String[] fields) { map.put(type, new FieldComparator(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 an StreamException during the serialization process. * * @param type the type * @param fields the field order */ public void registerFieldOrder(Class type, String[] fields) { map.put(type, new FieldComparator(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 {@link ConversionException} during * the serialization process. * * @param type the type * @param fields the field order */ public void registerFieldOrder(final Class type, final String[] fields) { map.put(type, new FieldComparator(type, fields)); }
@Override public int compare(final FieldKey first, final FieldKey second) { return compare(first.getFieldName(), second.getFieldName()); }
/** * 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 {@link ConversionException} during * the serialization process. * * @param type the type * @param fields the field order */ public void registerFieldOrder(final Class<?> type, final String[] fields) { map.put(type, new FieldComparator(type, fields)); }
public int compare(Object firstObject, Object secondObject) { FieldKey first = (FieldKey) firstObject, second = (FieldKey) secondObject; Class definedIn = first.getDeclaringClass(); return compare(first.getFieldName(), second.getFieldName()); }
public int compare(Object firstObject, Object secondObject) { FieldKey first = (FieldKey) firstObject, second = (FieldKey) secondObject; Class definedIn = first.getDeclaringClass(); return compare(first.getFieldName(), second.getFieldName()); }
public int compare(final Object firstObject, final Object secondObject) { final FieldKey first = (FieldKey)firstObject, second = (FieldKey)secondObject; return compare(first.getFieldName(), second.getFieldName()); }