MCPcopy Create free account
hub / github.com/jOOQ/jOOQ / absentOnNullIf

Method absentOnNullIf

jOOQ/src/main/java/org/jooq/impl/JSONObject.java:391–400  ·  view source on GitHub ↗
(
        Function0<Boolean> test,
        Function1<Field<T>, Field<T>> e,
        Field<T[]> array
    )

Source from the content-addressed store, hash-verified

389 }
390
391 static final <T> Field<T[]> absentOnNullIf(
392 Function0<Boolean> test,
393 Function1<Field<T>, Field<T>> e,
394 Field<T[]> array
395 ) {
396 if (test.get())
397 return arrayFilter(array, x -> e.apply(x).isNotNull());
398 else
399 return array;
400 }
401
402 private static final boolean isJSONArray(Field<?> field) {
403 return field instanceof JSONArray

Callers 2

accept0Method · 0.95
accept0Method · 0.95

Calls 4

arrayFilterMethod · 0.80
getMethod · 0.65
isNotNullMethod · 0.65
applyMethod · 0.65

Tested by

no test coverage detected