enumdescription.java
来自「主要是对串口驱动的的一些控制源码!!! 在下载javacomm20-win32」· Java 代码 · 共 40 行
JAVA
40 行
// Copyright <applicate>, 2002. All Rights Reserved.
// This software is the proprietary information of www.applicate.de.
// Use is subject to license terms.
package de.applicate.util.lang;
/**
* @author hs
* @created 12. Februar 2002
* @version $Author: mwulff $ checked in $Revision: 1.1 $ at $Date: 2003/01/16 13:04:46 $
*/
public abstract class EnumDescription extends Enum implements WithDescription {
private final String m_sDescription;
protected EnumDescription(final int _nID, final String _sDescription) {
super(_nID);
m_sDescription = _sDescription;
}
//------------------------------------------------------------------------
// implemented methods from WithDescription
//------------------------------------------------------------------------
public String getDescription() {
return m_sDescription;
}
//------------------------------------------------------------------------
// overrided methods from Object
//------------------------------------------------------------------------
public String toString() {
return m_sDescription;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?