Enum Class Env

java.lang.Object
java.lang.Enum<Env>
io.github.seenings.common.model.Env
All Implemented Interfaces:
Serializable, Comparable<Env>, Constable

public enum Env extends Enum<Env>
Env
  • Enum Constant Details

    • CHIXUEHUIDOCKER

      public static final Env CHIXUEHUIDOCKER
      本地docker环境
    • LOCALTEST

      public static final Env LOCALTEST
      本地联调环境
    • CHIXUEHUI

      public static final Env CHIXUEHUI
      本地环境
    • LOCAL

      public static final Env LOCAL
      本地环境
    • DEV

      public static final Env DEV
      开发环境
    • SIT

      public static final Env SIT
      测试环境SIT
    • UAT

      public static final Env UAT
      测试环境UAT
    • PRE

      public static final Env PRE
      预生产环境
    • PRD

      public static final Env PRD
      生产环境
  • Method Details

    • values

      public static Env[] 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 Env 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
    • isProd

      public static boolean isProd(Env env)
      是否生产环境
      Parameters:
      env - 环境
      Returns:
      是
    • isPre

      public static boolean isPre(Env env)
      是否预发环境
      Parameters:
      env - 环境
      Returns:
      是
    • isTest

      public static boolean isTest(Env env)
      是否测试环境
      Parameters:
      env - 环境
      Returns:
      是
    • isDev

      public static boolean isDev(Env env)
      是否开发环境
      Parameters:
      env - 环境
      Returns:
      是