Objects

object Objects

partial port of java.util.Objects

Functions

Link copied to clipboard
fun checkFromIndexSize(fromIndex: Int, size: Int, length: Int): Int
Link copied to clipboard
fun checkFromToIndex(fromIndex: Int, toIndex: Int, length: Int): Int
Link copied to clipboard
fun checkIndex(index: Int, length: Int): Int
fun checkIndex(index: Int, length: Int, oobef: (String, List<Number>) -> RuntimeException): Int
Link copied to clipboard
fun equals(a: Any?, b: Any?): Boolean

Returns {@code true} if the arguments are equal to each other and {@code false} otherwise. Consequently, if both arguments are {@code null}, {@code true} is returned. Otherwise, if the first argument is not {@code null}, equality is determined by calling the {@code equals} method of the first argument with the second argument as a parameter.

Link copied to clipboard
fun hash(vararg values: Any?): Int

{@return a hash code for a sequence of input values} The hash code is generated as if all the input values were placed into an array, and that array were hashed by calling .

Link copied to clipboard
fun hashCode(o: Any?): Int
Link copied to clipboard
fun isNull(obj: Any?): Boolean
Link copied to clipboard
fun toString(o: Any?): String

{@return the result of calling {@code toString} for a