|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.beancmpr.beans.BeanComparison
public class BeanComparison
The result of comparing two beans.
Constructor Summary | |
---|---|
BeanComparison(Object x,
Object y,
MultiValueComparison<?> delegate)
|
Method Summary | |
---|---|
int |
getResult()
The result of the comparison. |
String |
getSummaryText()
Provide a brief summary of the comparison. |
Iterable<Comparison<?>> |
getValueComparisons()
Provides an Iterable of the individual Comparison s
between the values of two Matchable s. |
Object |
getX()
Get the x of the comparison. |
Object |
getY()
Get the y of the comparison. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanComparison(Object x, Object y, MultiValueComparison<?> delegate)
Method Detail |
---|
public Object getX()
Comparison
getX
in interface Comparison<Object>
public Object getY()
Comparison
getY
in interface Comparison<Object>
public int getResult()
Comparison
getResult
in interface Comparison<Object>
public String getSummaryText()
Comparison
If the comparison is equal then this should be the text representation of either of the original values. If the comparison is not equal then this should be a short description of the difference, e.g. 'Fred <> Jane'.
As a rule of thumb summary should be suitable for displaying in the column of a report or the cell of a spreadsheet.
getSummaryText
in interface Comparison<Object>
public Iterable<Comparison<?>> getValueComparisons()
MultiValueComparison
Iterable
of the individual Comparison
s
between the values of two Matchable
s.
getValueComparisons
in interface MultiValueComparison<Object>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |