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>

public final class By<Left,Right> extends DelegatingBiFunction<Left,Right,Integer>
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 Details