Enum Class GitTagType
- All Implemented Interfaces:
Serializable
,Comparable<GitTagType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA tag annotated with details about when it was created and by whom.A simple tag directly referencing a commit. -
Method Summary
Modifier and TypeMethodDescriptionstatic GitTagType
Returns the enum constant of this class with the specified name.static GitTagType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANNOTATED
A tag annotated with details about when it was created and by whom.Note: If a type isn't explicitly specified, this is the default. This differs from
git tag
, which will createlightweight
tags by default. -
LIGHTWEIGHT
A simple tag directly referencing a commit. Lightweight tags do not track when, or by whom, they were created.
-
-
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
-