|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.test4j.hamcrest.matcher.property.comparator.EqStringComparator
public class EqStringComparator
| 构造方法摘要 | |
|---|---|
EqStringComparator()
|
|
| 方法摘要 | |
|---|---|
boolean |
canCompare(Object left,
Object right)
Checks whether this comparator can compare the given objects. |
Difference |
compare(Object left,
Object right,
boolean onlyFirstDifference,
ReflectionComparator reflectionComparator)
Compares the given objects and returns the difference (if any). |
static String |
toString(Object obj,
Object format)
将obj对象转换为String对象 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public EqStringComparator()
| 方法详细信息 |
|---|
public boolean canCompare(Object left,
Object right)
Comparator 复制的描述
Comparator 中的 canCompareleft - The left objectright - The right object
public Difference compare(Object left,
Object right,
boolean onlyFirstDifference,
ReflectionComparator reflectionComparator)
Comparator 复制的描述
Comparator 中的 compareleft - The left objectright - The right objectonlyFirstDifference - True if only the first difference should be returnedreflectionComparator - The root comparator for inner comparisons, not null
public static String toString(Object obj,
Object format)
obj - format -
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||