|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.test4j.hamcrest.matcher.property.reflection.ReflectionComparatorFactory
public class ReflectionComparatorFactory
A factory for creating a reflection comparator. This will assemble the apropriate comparator chain and constructs a reflection comparator.
By default, a strict comparison is performed, but if needed, some leniency can be configured by setting one or more comparator modes:
| 字段摘要 | |
|---|---|
protected static Comparator |
COLLECTION_COMPARATOR
The CollectionComparator singleton insance |
protected static Comparator |
EQ_STRING_COMPARATOR
The object equals to String comparator |
protected static Comparator |
HIBERNATE_PROXY_COMPARATOR
The HibernateProxyComparator singleton insance |
protected static Comparator |
IGNORE_DEFAULTS_COMPARATOR
The IgnoreDefaultsComparator singleton insance |
protected static Comparator |
LENIENT_DATES_COMPARATOR
The LenientDatesComparator singleton insance |
protected static Comparator |
LENIENT_NUMBER_COMPARATOR
The LenientNumberComparator singleton insance |
protected static Comparator |
LENIENT_ORDER_COMPARATOR
The LenientOrderCollectionComparator singleton insance |
protected static Comparator |
MAP_COMPARATOR
The MapComparator singleton insance |
protected static Comparator |
OBJECT_COMPARATOR
The ObjectComparator singleton insance |
protected static Comparator |
SIMPLE_CASES_COMPARATOR
The SimpleCasesComparatorsingleton insance |
| 构造方法摘要 | |
|---|---|
ReflectionComparatorFactory()
|
|
| 方法摘要 | |
|---|---|
static ReflectionComparator |
createRefectionComparator(EqMode... modes)
Creates a reflection comparator for the given modes. |
protected static List<Comparator> |
getComparatorChain(List<EqMode> modes)
Creates a comparator chain for the given modes. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected static final Comparator LENIENT_DATES_COMPARATOR
protected static final Comparator EQ_STRING_COMPARATOR
protected static final Comparator IGNORE_DEFAULTS_COMPARATOR
protected static final Comparator LENIENT_NUMBER_COMPARATOR
protected static final Comparator SIMPLE_CASES_COMPARATOR
protected static final Comparator LENIENT_ORDER_COMPARATOR
protected static final Comparator COLLECTION_COMPARATOR
protected static final Comparator MAP_COMPARATOR
protected static final Comparator HIBERNATE_PROXY_COMPARATOR
protected static final Comparator OBJECT_COMPARATOR
| 构造方法详细信息 |
|---|
public ReflectionComparatorFactory()
| 方法详细信息 |
|---|
public static ReflectionComparator createRefectionComparator(EqMode... modes)
modes - The modes, null for strict comparison
protected static List<Comparator> getComparatorChain(List<EqMode> modes)
modes - The modes, null for strict comparison
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||