Enum Class GitArchiveFormat

java.lang.Object
java.lang.Enum<GitArchiveFormat>
com.atlassian.bitbucket.scm.git.command.archive.GitArchiveFormat
All Implemented Interfaces:
Serializable, Comparable<GitArchiveFormat>, Constable

public enum GitArchiveFormat extends Enum<GitArchiveFormat>
Since:
5.1
  • Enum Constant Details

  • Method Details

    • values

      public static GitArchiveFormat[] 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

      public static GitArchiveFormat valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromArchiveFormat

      @Nonnull public static GitArchiveFormat fromArchiveFormat(@Nonnull com.atlassian.bitbucket.content.ArchiveFormat format)
      Parameters:
      format - the ArchiveFormat to convert
      Returns:
      the equivalent GitArchiveFormat
      Throws:
      IllegalArgumentException - if the specified format is not supported by git archive
      NullPointerException - if the provided format is null
    • getContentType

      @Nonnull public String getContentType()
    • getExtension

      @Nonnull public String getExtension()