Package org.gitlab4j.api
Enum Constants.ArchiveFormat
- java.lang.Object
-
- java.lang.Enum<Constants.ArchiveFormat>
-
- org.gitlab4j.api.Constants.ArchiveFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<Constants.ArchiveFormat>
,java.lang.constant.Constable
- Enclosing interface:
- Constants
public static enum Constants.ArchiveFormat extends Enum<Constants.ArchiveFormat>
Enum to specify the format of a downloaded archive.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Method Summary
Modifier and Type Method Description static Constants.ArchiveFormat
forValue(String value)
String
toString()
static Constants.ArchiveFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static Constants.ArchiveFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BZ2
public static final Constants.ArchiveFormat BZ2
-
TAR
public static final Constants.ArchiveFormat TAR
-
TAR_BZ2
public static final Constants.ArchiveFormat TAR_BZ2
-
TAR_GZ
public static final Constants.ArchiveFormat TAR_GZ
-
TB2
public static final Constants.ArchiveFormat TB2
-
TBZ
public static final Constants.ArchiveFormat TBZ
-
TBZ2
public static final Constants.ArchiveFormat TBZ2
-
ZIP
public static final Constants.ArchiveFormat ZIP
-
-
Method Detail
-
values
public static Constants.ArchiveFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Constants.ArchiveFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
forValue
public static Constants.ArchiveFormat forValue(String value) throws GitLabApiException
- Throws:
GitLabApiException
-
toString
public String toString()
- Overrides:
toString
in classEnum<Constants.ArchiveFormat>
-
-