com.jrockit.mc.flightrecorder.util
Class EqualsToolkit

java.lang.Object
  extended by com.jrockit.mc.flightrecorder.util.EqualsToolkit

public final class EqualsToolkit
extends java.lang.Object

Helper class for implementing Object.hashCode()

Author:
Erik Gahlin

Field Summary
static int SEED
           
 
Method Summary
static int hash(int seed, boolean bool)
           
static int hash(int seed, char c)
           
static int hash(int seed, double d)
           
static int hash(int seed, float f)
           
static int hash(int seed, int i)
           
static int hash(int seed, long l)
           
static int hash(int seed, java.lang.Object object)
           
static int hash(java.lang.Object object)
           
static boolean nullSafeEquals(java.lang.Object a, java.lang.Object b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEED

public static final int SEED
See Also:
Constant Field Values
Method Detail

nullSafeEquals

public static boolean nullSafeEquals(java.lang.Object a,
                                     java.lang.Object b)

hash

public static int hash(int seed,
                       boolean bool)

hash

public static int hash(int seed,
                       char c)

hash

public static int hash(int seed,
                       int i)

hash

public static int hash(int seed,
                       long l)

hash

public static int hash(int seed,
                       float f)

hash

public static int hash(int seed,
                       double d)

hash

public static int hash(java.lang.Object object)

hash

public static int hash(int seed,
                       java.lang.Object object)


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.