public enum GitProtocolEnum extends Enum<GitProtocolEnum> implements BaseEnum
BaseEnum.Cache| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
枚举的code
|
String |
getDesc()
枚举的描述
|
static GitProtocolEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GitProtocolEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetDescByCode, getEnum, getEnum, getMap, toJSONArray, toJSONObjectpublic static final GitProtocolEnum HTTP
public static final GitProtocolEnum SSH
public static GitProtocolEnum[] values()
for (GitProtocolEnum c : GitProtocolEnum.values()) System.out.println(c);
public static GitProtocolEnum 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 int getCode()
BaseEnumCopyright © 2017–2022. All rights reserved.