Here you can find the source of hashCode(Object... objects)
public static int hashCode(Object... objects)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { /**//from w ww. ja va 2s . com * Returns the hash code value for the given {@code objects}, * or 0 if it's {@code null}. */ public static int hashCode(Object... objects) { if (objects == null) { return 0; } else if (objects.length == 1) { Object object = objects[0]; return object == null ? 0 : object.hashCode(); } else { return Arrays.hashCode(objects); } } }