⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 enumformat.java

📁 SANCHO
💻 JAVA
字号:
/* * Copyright (C) 2004-2005 Rutger M. Ovidius for use with the sancho project. * See LICENSE.txt for license information. */package sancho.model.mldonkey.enums;public class EnumFormat extends AbstractEnum {  public static final EnumFormat UNKNOWN = new EnumFormat(1, "unknown");  public static final EnumFormat GENERIC = new EnumFormat(2, "generic");  public static final EnumFormat AVI = new EnumFormat(4, "avi");  public static final EnumFormat MP3 = new EnumFormat(8, "mp3");  private EnumFormat(int i, String resString) {    super(i, "e.format." + resString);  }  public static EnumFormat byteToEnum(byte b) {    switch (b) {      case 1 :        return EnumFormat.GENERIC;      case 2 :        return EnumFormat.AVI;      case 3 :        return EnumFormat.MP3;      default :        return EnumFormat.UNKNOWN;    }  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -