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