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(String message, Object leftValue, Object rightValue, Class leftClass, Class rightClass)
          Creates a difference.
 
方法摘要
<T,A> T
accept(DifferenceVisitor<T,A> visitor, A argument)
          Double dispatch method.
 Class getLeftClass()
           
 Class getRightClass()
           
 
从类 org.test4j.hamcrest.matcher.property.difference.Difference 继承的方法
getLeftValue, getMessage, getRightValue, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

ClassDifference

public ClassDifference(String message,
                       Object leftValue,
                       Object rightValue,
                       Class leftClass,
                       Class rightClass)
Creates a difference.

参数:
message - a message describing the difference
leftValue - the left instance
rightValue - 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 null
argument - An optional argument for the visitor, null if not applicable
返回:
The result


Copyright © 2013. All rights reserved.