Enum Class CnRepository

java.lang.Object
java.lang.Enum<CnRepository>
io.github.martixjohn.cnrepository.CnRepository
All Implemented Interfaces:
Serializable, Comparable<CnRepository>, Constable

public enum CnRepository extends Enum<CnRepository>
China Repository
  • Enum Constant Details

    • ALIYUN

      public static final CnRepository ALIYUN
      阿里云

      Aliyun

    • TENCENT

      public static final CnRepository TENCENT
      腾讯云

      Tencent cloud

    • NETEASE

      public static final CnRepository NETEASE
      网易

      Netease(163)

    • NONE

      public static final CnRepository NONE
      不使用仓库

      Not Applied

  • Method Details

    • values

      public static CnRepository[] 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 CnRepository 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
    • getUrl

      public String getUrl()
      Returns the url for repository
      Returns:
      url
    • isSecure

      public boolean isSecure()
      Does the repository supports https
      Returns:
      true if supports https