public static boolean compare(Path path, String checksum) {
        requireNonNull(path);
        requireNonNull(checksum);
        return InternalHashUtil.compare(path, checksum);
    }
A utility method for creating and comparing hashes of files.

@author  Emil Forslund
@since   3.0.0
generator-parent/generator-core/src/main/java/com/speedment/generator/core/util/HashUtil.java