|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Ref.Storage>
org.eclipse.jgit.lib.Ref.Storage
public static enum Ref.Storage
Location where a Ref
is stored.
Enum Constant Summary | |
---|---|
LOOSE
The ref is stored in a file by itself. |
|
LOOSE_PACKED
The ref is both LOOSE and PACKED . |
|
NETWORK
The ref came from a network advertisement and storage is unknown. |
|
NEW
The ref does not exist yet, updating it may create it. |
|
PACKED
The ref is stored in the packed-refs file, with others. |
Method Summary | |
---|---|
boolean |
isLoose()
|
boolean |
isPacked()
|
static Ref.Storage |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Ref.Storage[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Ref.Storage NEW
Creation is likely to choose LOOSE
storage.
public static final Ref.Storage LOOSE
Updating this ref affects only this ref.
public static final Ref.Storage PACKED
packed-refs
file, with others.
Updating this ref requires rewriting the file, with perhaps many other refs being included at the same time.
public static final Ref.Storage LOOSE_PACKED
LOOSE
and PACKED
.
Updating this ref requires only updating the loose file, but deletion requires updating both the loose file and the packed refs file.
public static final Ref.Storage NETWORK
This ref cannot be updated without Git-aware support on the remote side, as Git-aware code consolidate the remote refs and reported them to this process.
Method Detail |
---|
public static Ref.Storage[] values()
for (Ref.Storage c : Ref.Storage.values()) System.out.println(c);
public static Ref.Storage valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic boolean isLoose()
public boolean isPacked()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |