private static boolean isUnaryComparison(@Nullable Object value) {
    return value == null || value.equals(Double.NaN) || value.equals(Float.NaN);
  }
private static boolean isUnaryComparison ( @ Nullable Object value ) { return value == null || value . equals ( Double . NaN ) || value . equals ( Float . NaN ) ; }
Checks whether the provided object is NULL or NaN.