|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.beancmpr.comparers.EqualityComparison<T>
public class EqualityComparison<T>
A simple comparison where the result of a compare was that two values are not equal.
Constructor Summary | |
---|---|
EqualityComparison(T x,
T y)
|
Method Summary | |
---|---|
int |
getResult()
The result of the comparison. |
String |
getSummaryRegardless()
|
String |
getSummaryText()
Provide a brief summary of the comparison. |
T |
getX()
Get the x of the comparison. |
T |
getY()
Get the y of the comparison. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EqualityComparison(T x, T y)
Method Detail |
---|
public T getX()
Comparison
getX
in interface Comparison<T>
public T getY()
Comparison
getY
in interface Comparison<T>
public int getResult()
Comparison
getResult
in interface Comparison<T>
public String getSummaryRegardless()
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<T>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |