Class ReflectiveDiffBuilder<T>

  • All Implemented Interfaces:
    org.apache.commons.lang3.builder.Builder<DiffResult<T>>

    @Experimental
    public class ReflectiveDiffBuilder<T>
    extends java.lang.Object
    implements org.apache.commons.lang3.builder.Builder<DiffResult<T>>
    Assists in comparing Diffable objects with reflection.

    Inspired by: https://github.com/apache/commons-lang/blob/master/src/main/java/org/apache/commons/lang3/builder/ReflectionDiffBuilder.java

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DiffResult<T> build()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReflectiveDiffBuilder

        public ReflectiveDiffBuilder​(@NonNull
                                     T before,
                                     @NonNull
                                     T after)
    • Method Detail

      • build

        public DiffResult<T> build()
        Specified by:
        build in interface org.apache.commons.lang3.builder.Builder<T>