wire-runtime / com.squareup.wire.internal / Internal / countNonNull

countNonNull

static fun countNonNull(a: Any, b: Any): Int

Returns the number of non-null values in a, b.

static fun countNonNull(a: Any, b: Any, c: Any): Int

Returns the number of non-null values in a, b, c.

static fun countNonNull(a: Any, b: Any, c: Any, d: Any, vararg rest: Any): Int

Returns the number of non-null values in a, b, c, d, rest.