public static enum TransferConfig.ProtocolVersion extends Enum<TransferConfig.ProtocolVersion>
Enum Constant and Description |
---|
V0
Git wire protocol version 0 (the default).
|
V2
Git wire protocol version 2.
|
Modifier and Type | Method and Description |
---|---|
static TransferConfig.ProtocolVersion |
valueOf(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.
|
String |
version()
Returns version number
|
public static final TransferConfig.ProtocolVersion V0
public static final TransferConfig.ProtocolVersion V2
public static TransferConfig.ProtocolVersion[] values()
for (TransferConfig.ProtocolVersion c : TransferConfig.ProtocolVersion.values()) System.out.println(c);
public static TransferConfig.ProtocolVersion 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 version()
Copyright © 2021 Eclipse JGit Project. All rights reserved.