Class PackExt
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.pack.PackExt
-
public class PackExt extends Object
A pack file extension.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBit()
String
getExtension()
int
getPosition()
static PackExt
newPackExt(String ext)
Returns a PackExt for the file extension and registers it in the values array.String
toString()
static PackExt[]
values()
-
-
-
Method Detail
-
values
public static PackExt[] values()
- Returns:
- all of the PackExt values.
-
newPackExt
public static PackExt newPackExt(String ext)
Returns a PackExt for the file extension and registers it in the values array.- Parameters:
ext
- the file extension.- Returns:
- the PackExt for the ext
-
getExtension
public String getExtension()
- Returns:
- the file extension.
-
getPosition
public int getPosition()
- Returns:
- the position of the extension in the values array.
-
getBit
public int getBit()
- Returns:
- the bit mask of the extension e.g
1 << getPosition()
.
-
-