Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright 2014 Daniel Bechler
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package de.danielbechler.diff;
This is the entry point for all comparisons. It determines the type of the given objects and passes them to the appropriate de.danielbechler.diff.differ.Differ.

Daniel Bechler
public class ObjectDiffer
	private final DifferDispatcher dispatcher;
	public ObjectDiffer(final DifferDispatcher differDispatcher)
		this. = differDispatcher;

Recursively inspects the given objects and returns a node representing their differences. Both objects have be have the same type.

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.
A node representing the differences between the given objects.
	public <T> DiffNode compare(final T workingfinal T base)
		return .dispatch(., Instances.of(workingbase), RootAccessor.getInstance());
New to GrepCode? Check out our FAQ X