public class LongObjectIdTestUtils extends Object
Constructor and Description |
---|
LongObjectIdTestUtils() |
Modifier and Type | Method and Description |
---|---|
static LongObjectId |
hash(Path file)
Create id as hash of a file content
|
static LongObjectId |
hash(String s)
Create id as hash of the given string.
|
public static LongObjectId hash(String s)
s
- the string to hashpublic static LongObjectId hash(Path file) throws FileNotFoundException, IOException
file
- the file to hashFileNotFoundException
- if file doesn't existIOException
Copyright © 2019 Eclipse JGit Project. All rights reserved.