Example usage for org.apache.commons.lang3.builder Diff getFieldName

List of usage examples for org.apache.commons.lang3.builder Diff getFieldName

Introduction

In this page you can find the example usage for org.apache.commons.lang3.builder Diff getFieldName.

Prototype

public final String getFieldName() 

Source Link

Document

Returns the name of the field.

Usage

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*/
}