|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.reflectionassert.difference.Difference
public class Difference
A class for holding the difference between two objects.
| Constructor Summary | |
|---|---|
Difference(String message,
Object leftValue,
Object rightValue)
Creates a difference. |
|
| Method Summary | ||
|---|---|---|
|
accept(DifferenceVisitor<T,A> visitor,
A argument)
Double dispatch method. |
|
Object |
getLeftValue()
Gets the left value. |
|
String |
getMessage()
Gets the message indicating the kind of difference. |
|
Object |
getRightValue()
Gets the right value. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Difference(String message,
Object leftValue,
Object rightValue)
message - a message describing the differenceleftValue - the left instancerightValue - the right instance| Method Detail |
|---|
public Object getLeftValue()
public Object getRightValue()
public String getMessage()
public <T,A> T accept(DifferenceVisitor<T,A> visitor,
A argument)
visitor - The visitor, not nullargument - An optional argument for the visitor, null if not applicable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||