Java Object Hash hash(Object... values)

Here you can find the source of hash(Object... values)

Description

Generates a hash code for a sequence of input values.

License

Open Source License

Declaration

public static int hash(Object... values) 

Method Source Code

//package com.java2s;
//it under the terms of the GNU Affero General Public License as published by

import java.util.Arrays;

public class Main {
    /**//from  ww w. ja  va2s .com
     * Generates a hash code for a sequence of input values.
     */
    public static int hash(Object... values) {
        return Arrays.hashCode(values);
    }

    /**
     * Note that this method doesn't work for arrays currently.
     * @param o may be <code>null</code>
     * @return hash code for o, as in <code>Object.hashCode()</code>
     */
    public static int hashCode(Object o) {
        return (o == null) ? 0 : o.hashCode();
    }
}

Related

  1. deepHashCode(final Object object)
  2. deepHashCode(Object o)
  3. getIdentityAsHex(Object object)
  4. hash(Object o)
  5. hash(Object... objects)
  6. hashCode(final Object o)
  7. hashCode(final Object... objects)
  8. hashCode(final Object... objects)
  9. hashCode(Object o)