軟件是對質(zhì)量的不懈追求

          枚舉類型enum示例




          public enum OrderStatus {
              A(
          1), B(2), C(3), D(4), F(5), INCOMPLETE(6);
              
              
          private final int value;
              
          /**
               * Constructor.
               
          */
              
          private OrderStatus(int value) {
                  
          this.value = value;
              }
              
              
          /**
               * Get the value.
               * 
          @return the value
               
          */
              
          public int getValue() {
                  
          return value;
              }

          }


          posted on 2010-06-02 13:33 BlakeSu 閱讀(150) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 巴里| 汉沽区| 南乐县| 巍山| 深水埗区| 普格县| 抚顺市| 砚山县| 怀安县| 郴州市| 突泉县| 逊克县| 昭苏县| 乌兰察布市| 荔浦县| 思南县| 临高县| 名山县| 广州市| 旺苍县| 大冶市| 德兴市| 萝北县| 鄯善县| 工布江达县| 乐都县| 奉节县| 双辽市| 隆德县| 永顺县| 华安县| 合水县| 年辖:市辖区| 平潭县| 郎溪县| 巴塘县| 石林| 卢龙县| 凤台县| 申扎县| 青海省|