Package org.eclipse.jgit.lfs.test
Class LongObjectIdTestUtils
- java.lang.Object
-
- org.eclipse.jgit.lfs.test.LongObjectIdTestUtils
-
public class LongObjectIdTestUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LongObjectIdTestUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LongObjectId
hash(java.lang.String s)
Create id as hash of the given string.static LongObjectId
hash(java.nio.file.Path file)
Create id as hash of a file content
-
-
-
Method Detail
-
hash
public static LongObjectId hash(java.lang.String s)
Create id as hash of the given string.- Parameters:
s
- the string to hash- Returns:
- id calculated by hashing string
-
hash
public static LongObjectId hash(java.nio.file.Path file) throws java.io.FileNotFoundException, java.io.IOException
Create id as hash of a file content- Parameters:
file
- the file to hash- Returns:
- id calculated by hashing file content
- Throws:
java.io.FileNotFoundException
- if file doesn't existjava.io.IOException
-
-