Linguaggio

JavaSystem.IdentityHashCode(Object) Metodo

Definizione

Restituisce lo stesso codice hash per l'oggetto specificato come verrebbe restituito dal metodo predefinito hashCode(), indipendentemente dal fatto che la classe dell'oggetto specificato esempe hashCode().

[Android.Runtime.Register("identityHashCode", "(Ljava/lang/Object;)I", "")]
public static int IdentityHashCode(Java.Lang.Object? x);
[<Android.Runtime.Register("identityHashCode", "(Ljava/lang/Object;)I", "")>]
static member IdentityHashCode : Java.Lang.Object -> int

Parametri

x
Object

oggetto per il quale deve essere calcolato hashCode

Valori restituiti

hashCode

Attributi

Commenti

Restituisce lo stesso codice hash per l'oggetto specificato come verrebbe restituito dal metodo predefinito hashCode(), indipendentemente dal fatto che la classe dell'oggetto specificato esempe hashCode(). Il codice hash per il riferimento Null è zero.

Aggiunta in JDK1.1.

per java.lang.System.identityHashCode(java.lang.Object).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a

Vedi anche