|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Comparison<T>
The result of a Comparer
is a comparison between two things.
Method Summary | |
---|---|
int |
getResult()
The result of the comparison. |
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. |
Method Detail |
---|
T getX()
T getY()
int getResult()
String getSummaryText()
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |