org.assertj.core.internal
Class FieldByFieldComparator

java.lang.Object
  extended by org.assertj.core.internal.FieldByFieldComparator
All Implemented Interfaces:
Comparator<Object>
Direct Known Subclasses:
IgnoringFieldsComparator, OnFieldsComparator

public class FieldByFieldComparator
extends Object
implements Comparator<Object>

Compare Object field by field


Constructor Summary
FieldByFieldComparator()
           
 
Method Summary
protected  boolean areEqual(Object actual, Object other)
           
 int compare(Object actual, Object other)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

FieldByFieldComparator

public FieldByFieldComparator()
Method Detail

compare

public int compare(Object actual,
                   Object other)
Specified by:
compare in interface Comparator<Object>

areEqual

protected boolean areEqual(Object actual,
                           Object other)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013–2015 AssertJ. All rights reserved.