Class ObjectDiffer

java.lang.Object
de.danielbechler.diff.ObjectDiffer

public class ObjectDiffer extends Object
This is the entry point for all comparisons. It determines the type of the given objects and passes them to the appropriate Differ.
  • Constructor Details

  • Method Details

    • compare

      public <T> DiffNode compare(T working, T base)
      Recursively inspects the given objects and returns a node representing their differences. Both objects have be have the same type.
      Parameters:
      working - This object will be treated as the successor of the `base` object.
      base - This object will be treated as the predecessor of the working object.
      Returns:
      A node representing the differences between the given objects.