public static int hashCode()

in bval-jsr/src/main/java/org/apache/bval/util/ObjectUtils.java [103:132]


    public static int hashCode(Object o) {
        if (o instanceof Object[]) {
            return Arrays.hashCode((Object[]) o);
        }
        if (o instanceof byte[]) {
            return Arrays.hashCode((byte[]) o);
        }
        if (o instanceof short[]) {
            return Arrays.hashCode((short[]) o);
        }
        if (o instanceof int[]) {
            return Arrays.hashCode((int[]) o);
        }
        if (o instanceof char[]) {
            return Arrays.hashCode((char[]) o);
        }
        if (o instanceof long[]) {
            return Arrays.hashCode((long[]) o);
        }
        if (o instanceof float[]) {
            return Arrays.hashCode((float[]) o);
        }
        if (o instanceof double[]) {
            return Arrays.hashCode((double[]) o);
        }
        if (o instanceof boolean[]) {
            return Arrays.hashCode((boolean[]) o);
        }
        return Objects.hashCode(o);
    }