class CommonUtils {

    public static boolean allHaveSameLength(Object... arrays) {
        if (arrays.length < 1) {
            return true;
        }

        int length = Array.getLength(arrays[0]);
        for (Object array : arrays) {
            if (Array.getLength(array) != length) {
                return false;
            }
        }

        return true;
    }

    private  CommonUtils();

}