Package org.dmfs.jems2.bifunction
Class By<Left,Right>
java.lang.Object
org.dmfs.jems2.bifunction.DelegatingBiFunction<Left,Right,Integer>
org.dmfs.jems2.bifunction.By<Left,Right>
- All Implemented Interfaces:
BiFunction<Left,,Right, Integer> FragileBiFunction<Left,Right, Integer, RuntimeException>
A
BiFunction which compares two instances of different types by mapping them onto a common type and using a Comparator to compare those
results.
This is particularly useful with Diff.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.dmfs.jems2.bifunction.DelegatingBiFunction
value
-
Constructor Details
-
By
-
By
public By(Function<? super Left, ? extends V> leftMappingFunction, Function<? super Right, ? extends V> rightMappingFunction, Comparator<? super V> delegate)
-