public static enum RepositoryModel.RepoType extends Enum<RepositoryModel.RepoType> implements BaseEnum
BaseEnum.Cache
Modifier and Type | Method and Description |
---|---|
int |
getCode()
枚举的code
|
String |
getDesc()
枚举的描述
|
static RepositoryModel.RepoType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RepositoryModel.RepoType[] |
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, valueOf
getDescByCode, getEnum, getEnum, getMap, toJSONArray, toJSONObject
public static final RepositoryModel.RepoType Git
public static final RepositoryModel.RepoType Svn
public static RepositoryModel.RepoType[] values()
for (RepositoryModel.RepoType c : RepositoryModel.RepoType.values()) System.out.println(c);
public static RepositoryModel.RepoType 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()
BaseEnum
Copyright © 2017–2022. All rights reserved.