package com.geoway.pad.favourite.bean;
/**
 * @author likehua
 * @date   20120621
 * */
public enum FavouriteGeometeyType {
     POINT(1),
     LINE(2),
     POLYGON(2);
     int type;
     private FavouriteGeometeyType(int type){
      this.type=type;
     }
     public  int  getOriginTypeValue(){
      return this.type;
     }
    public static FavouriteGeometeyType  parseGeometryType(int type){
     if(type==1){
      return FavouriteGeometeyType.POINT;
     };
     if(type==2){
      return FavouriteGeometeyType.LINE;
     };
     if(type==3){
      return FavouriteGeometeyType.POLYGON;
     };
     return null;
    };
    public static  void main(String[] args){
//     FavouriteGeometeyType type;
     System.out.println(FavouriteGeometeyType.parseGeometryType(1).ordinal());
     System.out.println(FavouriteGeometeyType.parseGeometryType(1).getOriginTypeValue());
     
    }
}

相关文章:

  • 2021-05-31
  • 2022-12-23
  • 2021-04-04
  • 2022-12-23
  • 2021-11-29
  • 2021-07-08
  • 2022-12-23
  • 2021-04-29
猜你喜欢
  • 2021-07-15
  • 2022-12-23
  • 2021-05-16
  • 2021-11-17
  • 2021-09-15
  • 2022-01-31
相关资源
相似解决方案