Package org.eclipse.jgit.transport
Enum TransferConfig.ProtocolVersion
- java.lang.Object
-
- java.lang.Enum<TransferConfig.ProtocolVersion>
-
- org.eclipse.jgit.transport.TransferConfig.ProtocolVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TransferConfig.ProtocolVersion>
- Enclosing class:
- TransferConfig
static enum TransferConfig.ProtocolVersion extends java.lang.Enum<TransferConfig.ProtocolVersion>
A git configuration variable for which versions of the Git protocol to prefer. Used in protocol.version.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
ProtocolVersion(java.lang.String name)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static TransferConfig.ProtocolVersion
parse(java.lang.String name)
static TransferConfig.ProtocolVersion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TransferConfig.ProtocolVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V0
public static final TransferConfig.ProtocolVersion V0
-
V2
public static final TransferConfig.ProtocolVersion V2
-
-
Method Detail
-
values
public static TransferConfig.ProtocolVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TransferConfig.ProtocolVersion c : TransferConfig.ProtocolVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransferConfig.ProtocolVersion valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
parse
@Nullable static TransferConfig.ProtocolVersion parse(@Nullable java.lang.String name)
-
-