Enum Class TransferConfig.ProtocolVersion

java.lang.Object
java.lang.Enum<TransferConfig.ProtocolVersion>
org.eclipse.jgit.transport.TransferConfig.ProtocolVersion
All Implemented Interfaces:
Serializable, Comparable<TransferConfig.ProtocolVersion>, Constable
Enclosing class:
TransferConfig

public static enum TransferConfig.ProtocolVersion extends Enum<TransferConfig.ProtocolVersion>
A git configuration variable for which versions of the Git protocol to prefer. Used in protocol.version.
Since:
5.9
  • Enum Constant Details

  • Field Details

  • Constructor Details

    • ProtocolVersion

      private ProtocolVersion(String name)
  • Method Details

    • values

      public static TransferConfig.ProtocolVersion[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TransferConfig.ProtocolVersion valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • version

      public String version()
      Returns version number
      Returns:
      string version
    • parse