code: public static <T> Predicate<T> isEqual(final T targetRef) {
          return new Predicate<T>() {
              @Override
              public boolean test(T testValue) {  //NOPMD
                  return testValue.equals(targetRef);
              }
          };
      }
docs: Returns a predicate that tests if two arguments are equal according to Objects.equals(Object, Object).
  
  @param targetRef the object reference with which to compare for equality, which may be null
  @param <T>       the type of arguments to the predicate
  @return a predicate that tests if two arguments are equal according to Objects.equals(Object, Object)