public static < T , E extends Exception > BinaryOperator < T > sneaked ( SneakyBinaryOperator < T , E > binaryOperator ) { return ( t1 , t2 ) -> { @ SuppressWarnings ( "unchecked" ) SneakyBinaryOperator < T , RuntimeException > castedBinaryOperator = ( SneakyBinaryOperator < T , RuntimeException > ) binaryOperator ; return castedBinaryOperator . apply ( t1 , t2 ) ; } ; }
Sneaky throws a BinaryOperator lambda .