Skip to content

Instantly share code, notes, and snippets.

@sparkoo
Created November 11, 2017 08:06
Show Gist options
  • Save sparkoo/68988bff384cae191db79a9dbc812e31 to your computer and use it in GitHub Desktop.
Save sparkoo/68988bff384cae191db79a9dbc812e31 to your computer and use it in GitHub Desktop.
public interface HashService {
String getHashType();
String getChecksum(String box);
String getChecksum(String box, boolean calculate);
}
public class FilesystemDigestHashService implements HashService {
...
String getChecksum(String box) {
getChecksum(box, true);
}
String getChecksum(String box, boolean calculate){
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment