Package io.github.nejckorasa
Class CollectionCmpBuilder<B,W>
- java.lang.Object
-
- io.github.nejckorasa.CollectionCmpBuilder<B,W>
-
public class CollectionCmpBuilder<B,W> extends Object
Builder used to configure comparing of collections of different objects performed inCollectionCmp
- See Also:
to compare objects with same types
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmpResult<B,W>
compare(EqPair<B,W>... eqPair)
Compare matched items based on equality pairCmpResult<B,W>
compare(BiFunction<B,W,Boolean> equalsFunction)
Use equals function to compare items matched by same key.
-
-
-
Method Detail
-
compare
public CmpResult<B,W> compare(BiFunction<B,W,Boolean> equalsFunction)
Use equals function to compare items matched by same key. Default equals function isequalsFunction
- Parameters:
equalsFunction
- equals function to compare matched items with- Returns:
- compare result, containing all changes
-
-