|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.test.ComparetorResult
public class ComparetorResult
This class represents the result of a complex comparison. Besides the simple true/false value there is also a textual message explaning how the comarison is unequal
| Field Summary | |
|---|---|
static ComparetorResult |
TRUE
Instance representing a successfull comparison |
| Constructor Summary | |
|---|---|
ComparetorResult(boolean resultValue,
java.lang.String msg)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Instance of this class is equal if the test and the message are equal |
java.lang.String |
getMessage()
Retrieve the comparison message |
int |
hashCode()
|
boolean |
isTrue()
Check if the comparison was successful |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static ComparetorResult TRUE
| Constructor Detail |
|---|
public ComparetorResult(boolean resultValue,
java.lang.String msg)
| Method Detail |
|---|
public boolean isTrue()
public java.lang.String getMessage()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||