![]() * Returns a string representation of the object. * * If two objects are equal according to the `equals()` method, then calling the `hashCode` method on each of the two objects must produce the same integer result. * * Whenever it is invoked on the same object more than once, the `hashCode` method must consistently return the same integer, provided no information used in `equals` comparisons on the object is modified. * Returns a hash code value for the object. Public open operator fun equals( other : Any?): Boolean * * Never equal to null: for any non-null value `x`, `x.equals(null)` should return false. * * Consistent: for any non-null values `x` and `y`, multiple invocations of `x.equals(y)` consistently return true or consistently return false, provided no information used in `equals` comparisons on the objects is modified. * * Transitive: for any non-null values `x`, `y`, and `z`, if `x.equals(y)` returns true and `y.equals(z)` returns true, then `x.equals(z)` should return true. * * Symmetric: for any non-null values `x` and `y`, `x.equals(y)` should return true if and only if `y.equals(x)` returns true. * * Reflexive: for any non-null value `x`, `x.equals(x)` should return true. Implementations must fulfil the following ![]() * Indicates whether some other object is "equal to" this one. * The root of the Kotlin class hierarchy. * See the License for the specific language governing permissions and * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * distributed under the License is distributed on an "AS IS" BASIS, * Unless required by applicable law or agreed to in writing, software * You may obtain a copy of the License at So any Java API which needs the Class can just use an inlined. * you may not use this file except in compliance with the License. It would be great in Kotlin if an inline function using a javaClass() expression.![]() * Licensed under the Apache License, Version 2.0 (the "License") ![]()
0 Comments
Leave a Reply. |