Top Description Fields Constructors Methods
org.eclipse.jgit.internal.storage.pack

public final Enum PackExt

extends Enum<PackExt>
Class Inheritance

A pack file extension.

Field Summary

Modifier and TypeField and Description
public static final PackExt
BITMAP_INDEX

A pack bitmap index file extension.

public static final PackExt
COMMIT_GRAPH

A commit graph file extension.

private final String
public static final PackExt
INDEX

A pack index file extension.

public static final PackExt
KEEP

A keep pack file extension.

public static final PackExt
OBJECT_SIZE_INDEX

An object size index.

public static final PackExt
PACK

A pack file extension.

public static final PackExt
REFTABLE

A reftable file.

public static final PackExt
REVERSE_INDEX

A pack reverse index file extension.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the bit mask of the extension e.g 1 << getPosition().
getBit
()

Get the bit mask of the extension e.g 1 << getPosition().

public String

Returns:

the file extension.
getExtension
()

Get the file extension.

public int

Returns:

the position of the extension in the enum declaration.
getPosition
()

Get the position of the extension in the enum declaration.

public String

Returns:

a temporary file extension
getTmpExtension
()

Format a temporary file extension for this PackExt.

public String
toString()

Overrides java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration.

public static PackExt
public static PackExt[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

BITMAP_INDEXback to summary
public static final PackExt BITMAP_INDEX

A pack bitmap index file extension.

COMMIT_GRAPHback to summary
public static final PackExt COMMIT_GRAPH

A commit graph file extension.

extback to summary
private final String ext
INDEXback to summary
public static final PackExt INDEX

A pack index file extension.

KEEPback to summary
public static final PackExt KEEP

A keep pack file extension.

OBJECT_SIZE_INDEXback to summary
public static final PackExt OBJECT_SIZE_INDEX

An object size index.

PACKback to summary
public static final PackExt PACK

A pack file extension.

REFTABLEback to summary
public static final PackExt REFTABLE

A reftable file.

REVERSE_INDEXback to summary
public static final PackExt REVERSE_INDEX

A pack reverse index file extension.

Constructor Detail

PackExtback to summary
private PackExt(String ext)

Method Detail

getBitback to summary
public int getBit()

Get the bit mask of the extension e.g 1 << getPosition().

Returns:int

the bit mask of the extension e.g 1 << getPosition().

getExtensionback to summary
public String getExtension()

Get the file extension.

Returns:String

the file extension.

getPositionback to summary
public int getPosition()

Get the position of the extension in the enum declaration.

Returns:int

the position of the extension in the enum declaration.

getTmpExtensionback to summary
public String getTmpExtension()

Format a temporary file extension for this PackExt.

Returns:String

a temporary file extension

toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Doc from java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists.

Returns:String

the name of this enum constant

Annotations
@Override
valueOfback to summary
public static PackExt valueOf(String name)
valuesback to summary
public static PackExt[] values()