首页 > 其他分享 >常用枚举

常用枚举

时间:2022-11-07 09:22:07浏览次数:52  
标签:常用 description License namespace private 枚举 type String

/*
* Copyright 1999-2021 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.alibaba.nacos.console.enums;

/**
* the enum of namespace. 0 : Global configuration, 1 : Default private namespace ,2 :
* Custom namespace.
*
* @author chenglu
* @date 2021-05-25 17:01
*/
public enum NamespaceTypeEnum {

/**
* Global configuration.
*/
GLOBAL(0, "Global configuration"),

/**
* Default private namespace.
*/
PRIVATE(1, "Default private namespace"),

/**
* Custom namespace.
*/
CUSTOM(2, "Custom namespace");

/**
* the namespace type.
*/
private final int type;

/**
* the description.
*/
private final String description;

NamespaceTypeEnum(int type, String description) {
this.type = type;
this.description = description;
}

public int getType() {
return type;
}

public String getDescription() {
return description;
}

}

标签:常用,description,License,namespace,private,枚举,type,String
From: https://www.cnblogs.com/mssrecord/p/16864903.html

相关文章

  • 常用类.Date
    package常用类.Date;importjava.util.Date;publicclassdemo1{publicstaticvoidmain(String[]args){//1.创建Date对象//今天Dateda......
  • 常用类.SimpleDateFormat
    package常用类.calendar;importjava.text.SimpleDateFormat;importjava.util.Date;publicclasssimpleDateFormat{publicstaticvoidmain(String[]args)throw......
  • 常用类.calendar
    package常用类.calendar;importjava.util.Calendar;publicclassdemo01{publicstaticvoidmain(String[]args){//1.创建一个Calendar对象Cale......
  • 在 flutter 中使用枚举的技巧
    在flutter中使用枚举的技巧前言例如,不管是谁在Kotlin之后,再开发Dart都对它带来的种种限制感到失望。其中之一是枚举类。单独使用枚举值是可以的,但是还有别的吗?你......
  • 10.Vue中常用的第三方组件
    第三方插件可以增强vue,帮助我们更好的开发项目,如axios,vuex,vue-router,elementui等我们可以自定义插件,步骤如下:在vue项目下的src文件夹下创建plugins文件夹,创建一个i......
  • argoCD 部署及常用功能和原理
    argoCD应用官方参考链接:https://artifacthub.io/packages/helm/argo/argo-cdhttps://argo-cd.readthedocs.io/en/stable/k8s集群版本v1.23.5部署方式根据官方的的部......
  • String常用方法有哪些
    一、构造器实质是给底层的char数组value赋值Strings1=newString();Strings2=newString(“abc”);Strings3=newString(newchar[]{‘a',‘b',‘c'});二......
  • C/C++中的枚举数据类型
    关键字:Emum自定义名称{a=1b=2,c=3,d=4}box;定义好之后可以直接通过box关键字调用ennumbag{book1="百年孤独",book2="时间简史",book3="简爱"}boo......
  • Map接口常用方法
    packagecom.msb.test10;importjava.util.Collection;importjava.util.HashMap;importjava.util.Map;importjava.util.Set;/***@author:liu*日期:08:4......
  • 20221106 IDEA常用插件
    插件功能Chinese​(Simplified)​LanguagePack/中文语言包汉化包IDEEvalReset科学使用IDEATranslation翻译应用RainbowBrackets彩虹括号......