Class PackExt
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.pack.PackExt
-
public class PackExt extends java.lang.Object
A pack file extension.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBit()
java.lang.String
getExtension()
int
getPosition()
static PackExt
newPackExt(java.lang.String ext)
Returns a PackExt for the file extension and registers it in the values array.java.lang.String
toString()
static PackExt[]
values()
-
-
-
Method Detail
-
values
public static PackExt[] values()
- Returns:
- all of the PackExt values.
-
newPackExt
public static PackExt newPackExt(java.lang.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 java.lang.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()
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-