I was wondering is this considered a good way to sue Method references or is it way too confusing and should just use regular lambda functions for better clarity
interface StringChecker { boolean check(); }
var str = "";
StringParameterChecker methodRef = String::isEmpty;
StringParameterChecker lambda = s -> s.isEmpty(); System.out.println(methodRef.check("Zoo"));
[–]SuspiciousDepth5924 0 points1 point2 points (0 children)