class Internal
Methods for generated code use only. Not subject to public API rules.
static fun checkElementsNotNull(list: MutableList<*>): Unit
Throw NullPointerException if static fun checkElementsNotNull(map: MutableMap<*, *>): Unit
Throw NullPointerException if |
|
static fun <T : Any> copyOf(name: String, list: MutableList<T>): MutableList<T>static fun <K : Any, V : Any> copyOf(name: String, map: MutableMap<K, V>): MutableMap<K, V> |
|
static fun countNonNull(a: Any, b: Any): Int
Returns the number of non-null values in static fun countNonNull(a: Any, b: Any, c: Any): Int
Returns the number of non-null values in static fun countNonNull(a: Any, b: Any, c: Any, d: Any, vararg rest: Any): Int
Returns the number of non-null values in |
|
static fun equals(a: Any, b: Any): Boolean |
|
static fun <T : Any> immutableCopyOf(name: String, list: MutableList<T>): MutableList<T>static fun <K : Any, V : Any> immutableCopyOf(name: String, map: MutableMap<K, V>): MutableMap<K, V> |
|
static fun missingRequiredFields(vararg args: Any): IllegalStateException
Create an exception for missing required fields. |
|
static fun <T : Any> newMutableList(): MutableList<T> |
|
static fun <K : Any, V : Any> newMutableMap(): MutableMap<K, V> |
|
static fun <T : Any> redactElements(list: MutableList<T>, adapter: ProtoAdapter<T>): Unitstatic fun <T : Any> redactElements(map: MutableMap<*, T>, adapter: ProtoAdapter<T>): Unit |