List of usage examples for org.apache.commons.lang3.builder Diff getFieldName
public final String getFieldName()
Returns the name of the field.
From source file:com.infinities.skyport.diff.PatchUtil.java
private static <T, E> void patch(List<Diff<?>> diffs, T destination) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundException { for (Diff<?> diff : diffs) { PropertyUtils.setProperty(destination, diff.getFieldName(), diff.getRight()); }/* w ww . j a v a2 s . c om*/ }