Package io.github.jcohy.gradle.version
Enum Class ReleaseStatus
- All Implemented Interfaces:
Serializable,Comparable<ReleaseStatus>,Constable
Copyright: Copyright (c) 2021
jcohy.com
Description: Release 版本状态
- Since:
- 0.0.5.1
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ReleaseStatusofProject(org.gradle.api.Project project) 根据版本名 获取statusstatic ReleaseStatusReturns the enum constant of this class with the specified name.static ReleaseStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SNAPSHOT
快照版本 -
PRERELEASE
预发布版本 -
GENERAL_AVAILABILITY
可用版本
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
ofProject
根据版本名 获取status- Parameters:
project- 项目版本- Returns:
- 获取此项目的 release status
-