public enum PackExt extends Enum<PackExt>
| Enum Constant and Description |
|---|
BITMAP_INDEX
A pack bitmap index file extension.
|
INDEX
A pack index file extension.
|
KEEP
A keep pack file extension.
|
PACK
A pack file extension.
|
REFTABLE
A reftable file.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBit()
Get the bit mask of the extension e.g
1 << getPosition(). |
String |
getExtension()
Get the file extension.
|
int |
getPosition()
Get the position of the extension in the enum declaration.
|
String |
toString() |
static PackExt |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PackExt[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PackExt PACK
public static final PackExt INDEX
public static final PackExt KEEP
public static final PackExt BITMAP_INDEX
public static final PackExt REFTABLE
public static PackExt[] values()
for (PackExt c : PackExt.values()) System.out.println(c);
public static PackExt valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getExtension()
public int getPosition()
public int getBit()
1 << getPosition().1 << getPosition().Copyright © 2021 Eclipse JGit Project. All rights reserved.