Searched refs:replaceIfSame (Results 1 – 1 of 1) sorted by relevance
1455 public static <T> T ifSame(T source, T replaceIfSame, T replacement) { in ifSame() argument1456 return source == replaceIfSame ? replacement : source; in ifSame()1459 public static <T> T ifEqual(T source, T replaceIfSame, T replacement) { in ifEqual() argument1460 return Objects.equals(source, replaceIfSame) ? replacement : source; in ifEqual()