📄 enumquery.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 EnumQuery extends AbstractEnum { public static final EnumQuery UNKNOWN = new EnumQuery(0, ""); public static final EnumQuery AND = new EnumQuery(1, "AND"); public static final EnumQuery OR = new EnumQuery(2, "OR"); public static final EnumQuery ANDNOT = new EnumQuery(4, "ANDNOT"); public static final EnumQuery MODULE = new EnumQuery(8, "MODULE"); public static final EnumQuery KEYWORDS = new EnumQuery(16, "KEYWORDS"); public static final EnumQuery MINSIZE = new EnumQuery(32, "MINSIZE"); public static final EnumQuery MAXSIZE = new EnumQuery(64, "MAXSIZE"); public static final EnumQuery FORMAT = new EnumQuery(128, "FORMAT"); public static final EnumQuery MEDIA = new EnumQuery(256, "MEDIA"); public static final EnumQuery MP3_ARTIST = new EnumQuery(512, "MP3_ARTIST"); public static final EnumQuery MP3_TITLE = new EnumQuery(1024, "MP3_TITLE"); public static final EnumQuery MP3_ALBUM = new EnumQuery(2048, "MP3_ALBUM"); public static final EnumQuery MP3_BITRATE = new EnumQuery(4096, "MP3_BITRATE"); public static final EnumQuery HIDDEN = new EnumQuery(8192, "HIDDEN"); private EnumQuery(int i, String resString) { super(i, resString); } public static EnumQuery byteToEnum(byte b) { switch (b) { case 0 : return EnumQuery.AND; case 1 : return EnumQuery.OR; case 2 : return EnumQuery.ANDNOT; case 3 : return EnumQuery.MODULE; case 4 : return EnumQuery.KEYWORDS; case 5 : return EnumQuery.MINSIZE; case 6 : return EnumQuery.MAXSIZE; case 7 : return EnumQuery.FORMAT; case 8 : return EnumQuery.MEDIA; case 9 : return EnumQuery.MP3_ARTIST; case 10 : return EnumQuery.MP3_TITLE; case 11 : return EnumQuery.MP3_ALBUM; case 12 : return EnumQuery.MP3_BITRATE; case 13 : return EnumQuery.HIDDEN; default : return EnumQuery.UNKNOWN; } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -