guava/src/com/google/common/io/Files.java
@Beta
  @Deprecated
  public
  static HashCode hash(File file, HashFunction hashFunction) throws IOException {
    return asByteSource(file).hash(hashFunction);
  }
@Beta
  @Deprecated
  public
  static HashCode hash(File file, HashFunction hashFunction) throws IOException {
    return asByteSource(file).hash(hashFunction);
  }
@ Beta @ Deprecated public static HashCode hash ( File file , HashFunction hashFunction ) throws IOException { return asByteSource ( file ) . hash ( hashFunction ) ; }
Computes the hash code of the {@code file} using {@code hashFunction}.

@param file the file to read
@param hashFunction the hash function to use to hash the data
@return the {@link HashCode} of all of the bytes in the file
@throws IOException if an I/O error occurs
@since 12.0
@deprecated Prefer {@code asByteSource(file).hash(hashFunction)}. This method is scheduled to
be removed in January 2019.
Computes the hash code of the { @code file } using { @code hashFunction } .