org.pojomatic.diff
Class NoDifferences

java.lang.Object
  extended by org.pojomatic.diff.NoDifferences
All Implemented Interfaces:
Differences

public final class NoDifferences
extends java.lang.Object
implements Differences


Method Summary
 boolean areEqual()
           
 java.lang.Iterable<Difference> differences()
          The differences between the two objects.
static NoDifferences getInstance()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

areEqual

public boolean areEqual()
Specified by:
areEqual in interface Differences
Returns:
true if the two POJOs were equal to each other; false otherwise.

toString

public java.lang.String toString()
Specified by:
toString in interface Differences
Overrides:
toString in class java.lang.Object
Returns:
a description of the differences

getInstance

public static NoDifferences getInstance()

differences

public java.lang.Iterable<Difference> differences()
Description copied from interface: Differences
The differences between the two objects. If there are no differences, an empty Iterable.

Specified by:
differences in interface Differences
Returns:
the differences between the two objects, or an empty Iterable if there are none


Copyright © 2008-2010. All Rights Reserved.