public class LongObjectIdTestUtils
extends java.lang.Object
| Constructor and Description |
|---|
LongObjectIdTestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static LongObjectId |
hash(java.nio.file.Path file)
Create id as hash of a file content
|
static LongObjectId |
hash(java.lang.String s)
Create id as hash of the given string.
|
public static LongObjectId hash(java.lang.String s)
s - the string to hashpublic static LongObjectId hash(java.nio.file.Path file) throws java.io.FileNotFoundException, java.io.IOException
file - the file to hashjava.io.FileNotFoundException - if file doesn't existjava.io.IOException