org.test4j.hamcrest.matcher.property.difference
类 ClassDifference
java.lang.Object
org.test4j.hamcrest.matcher.property.difference.Difference
org.test4j.hamcrest.matcher.property.difference.ClassDifference
public class ClassDifference
- extends Difference
ClassDifference
public ClassDifference(String message,
Object leftValue,
Object rightValue,
Class leftClass,
Class rightClass)
- Creates a difference.
- 参数:
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)
- 从类
Difference 复制的描述
- Double dispatch method. Dispatches back to the given visitor.
All subclasses should copy this method in their own class body.
- 覆盖:
- 类
Difference 中的 accept
- 参数:
visitor - The visitor, not nullargument - An optional argument for the visitor, null if not applicable
- 返回:
- The result
Copyright © 2013. All rights reserved.