public enum GitArchiveFormat extends Enum<GitArchiveFormat>
Modifier and Type | Method and Description |
---|---|
static GitArchiveFormat |
fromArchiveFormat(com.atlassian.bitbucket.content.ArchiveFormat format) |
String |
getContentType() |
String |
getExtension() |
static GitArchiveFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GitArchiveFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GitArchiveFormat TAR
public static final GitArchiveFormat TAR_GZ
public static final GitArchiveFormat TGZ
public static final GitArchiveFormat ZIP
public static GitArchiveFormat[] values()
for (GitArchiveFormat c : GitArchiveFormat.values()) System.out.println(c);
public static GitArchiveFormat 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 null@Nonnull public static GitArchiveFormat fromArchiveFormat(@Nonnull com.atlassian.bitbucket.content.ArchiveFormat format)
format
- the ArchiveFormat
to convertGitArchiveFormat
IllegalArgumentException
- if the specified format
is not supported by
git archive
NullPointerException
- if the provided format
is null
Copyright © 2019 Atlassian. All rights reserved.