ComparisonPerformer and different
tools to build or combine them.See: Description
| Class | Description |
|---|---|
| AbstractComparisonPerformer<T> |
Can be used to create 'named' performer.
|
| AbstractDynamicPerformerBuilder<T,R extends ComparisonPerformer<?>> |
Each dynamic performer builder contains a single instance of the
DynamicComparisonPerformer class. |
| ArrayComparisonPerformer<T> |
Compares elements of the list with corresponding indexes using specified delegate.
|
| CompositeComparisonPerformer<T> |
Composite performer allows you to register multiple comparison performers for different properties of the
compared object beforehand.
|
| DynamicComparisonPerformer |
This performer allows you to register delegates that will be dynamically selected at the moment of execution.
|
| GettersDynamicPerformerBuilder<T> |
Class provides functionality to build
CompositeComparisonPerformer by streaming all the getter methods
in the specified class and filtering out the ones you want to include or exclude. |
| GettersDynamicPerformerBuilder.PatternPredicate |
Predicates created from a
Pattern instance or a string regex pattern, and used to match Method
instances. |
| ListComparisonPerformer<T> |
Compares elements of lists with corresponding indexes using specified delegate.
|
| MapComparisonPerformer<V> |
Compares maps by keys, using specified delegate performer to check that values with the same key are equal in both
maps.
|
| PropertyDynamicPerformerBuilder<T> |
Class provides functionality to build a
CompositeComparisonPerformer by specifying actual properties
of a class to be compared. |
| ReflectiveComparisonPerformer | |
| SetComparisonPerformer<T> |
Compares any kinds of collections as sets, using specified delegate to check if both collections
contains all the same elements regarding their order.
|
Package provides all the freaky implementations for the interface
ComparisonPerformer and different
tools to build or combine them.
AbstractComparisonPerformer
Can be used to build the most obvious and plane implementation of a custom comparison performer.
No restrictions. You just implements a method and do what you want to produce a result.
May be successfully combined with the ComplexComparisonResultBuilder
DynamicComparisonPerformer
Can be used to register custom delegates for specific types and then select them at the moment of execution.
Provides in-built functionality to resolve arrays, collections, and maps. Quite complex functionality.
Please read documentation.
CompositeComparisonPerformer
Combines multiple custom performers into map, to produce the
ComplexComparisonResult
with a mirroring map of results.
PropertyDynamicPerformerBuilder
More complex (or more easy) way to build a custom comparison performer. Allows to add specific class properties, or to build these properties right there, and then produce composite performer with a corresponding map of delegate performers. Allows specify direct delegates for some properties.
This builder incorporate DynamicComparisonPerformer
into its functionality. So be sure you read the documentation.
GettersDynamicPerformerBuilder
Next step in building custom performers. This one allows you to automatically build performer from all the
getter methods in a specific class (and its ancestors). You can filter getters in or out. But you cannot specify
direct delegates for separate getters (only by result type), so if you need more detailed or complex functionality
use PropertyDynamicPerformerBuilder
This builder also incorporate DynamicComparisonPerformer
into its functionality. So be sure you read the documentation.
Also provides bunch of specific performers or wrappers. You should check out them by yourself.