怎么使用枚举结合switch

来源:互联网 发布:php com dotnet.dll 编辑:程序博客网 时间:2024/06/11 17:48
switch (vFile.getType()){    case file:        ovf=this.getVFileById(vFile.getVfileId());        break;    case folder:        ovf=new OVFile(vFile,null,0);        break;}vFile.getType是个枚举类型,case也是枚举类型,
0 0
原创粉丝点击