View Javadoc
1   package com.puppycrawl.tools.checkstyle.grammars.java8;
2   
3   import java.util.function.Predicate;
4   
5   public class InputLambda18 {
6   
7       static <T> Predicate<T> isEqual(Object targetRef) {
8           return (null == targetRef)
9                   ? null
10                  : object -> targetRef.equals(object);
11      }
12  }