org.unitils.reflectionassert.difference
Class ClassDifference
java.lang.Object
org.unitils.reflectionassert.difference.Difference
org.unitils.reflectionassert.difference.ClassDifference
public class ClassDifference
- extends Difference
- Author:
- Filip Neven, Tim Ducheyne
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassDifference
public ClassDifference(String message,
Object leftValue,
Object rightValue,
Class<?> leftClass,
Class<?> rightClass)
- Creates a difference.
- Parameters:
message
- a message describing the differenceleftValue
- the left instancerightValue
- the right instance
getLeftClass
public Class<?> getLeftClass()
getRightClass
public Class<?> getRightClass()
accept
public <T,A> T accept(DifferenceVisitor<T,A> visitor,
A argument)
- Description copied from class:
Difference
- Double dispatch method. Dispatches back to the given visitor.
All subclasses should copy this method in their own class body.
- Overrides:
accept
in class Difference
- Parameters:
visitor
- The visitor, not nullargument
- An optional argument for the visitor, null if not applicable
- Returns:
- The result
Copyright © 2011. All Rights Reserved.