Java Hash Calculate hash(final Object object)

Here you can find the source of hash(final Object object)

Description

hash

License

LGPL

Declaration

public static String hash(final Object object) 

Method Source Code

//package com.java2s;

public class Main {
    public static String hash(final Object object) {
        final int hash = object.hashCode();
        return hash > 0 ? String.valueOf(hash) : "0" + Math.abs(hash);
    }//  w ww.ja  v a 2s. c o m
}

Related

  1. hash(char[] str, int start, int length)
  2. hash(double value)
  3. hash(final boolean value)
  4. hash(final int value)
  5. hash(final Object key, final Object value)
  6. hash(final Object[] objects)
  7. hash(finalObject object)
  8. hash(int aSeed, boolean aBoolean)
  9. hash(int aSeed, Object[] aArray)