org.pojomatic.diff
Interface Differences

All Known Implementing Classes:
NoDifferences, PropertyDifferences

public interface Differences

A summary of differences (if any) between two POJOs.


Method Summary
 boolean areEqual()
           
 java.lang.Iterable<? extends Difference> differences()
          The differences between the two objects.
 java.lang.String toString()
           
 

Method Detail

differences

java.lang.Iterable<? extends Difference> differences()
The differences between the two objects. If there are no differences, an empty Iterable.

Returns:
the differences between the two objects, or an empty Iterable if there are none

areEqual

boolean areEqual()
Returns:
true if the two POJOs were equal to each other; false otherwise.

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a description of the differences


Copyright © 2008-2010. All Rights Reserved.