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

📄 charconverter.java

📁 jConfig,JAVA读取XML的开源项目
💻 JAVA
字号:
/*
 * CharPropertyEditor.java
 *
 * Created on 28. September 2004, 13:10
 */

package org.jconfig.utils.editors;

/**
 * The CharConverter will convert the given text into a Character object.
 * It simply takes the first char of the text and returns this as Character.
 *
 * @author  Andreas Mecky andreasmecky@yahoo.de
 * @author  Terry Dye terrydye@yahoo.com
 */
public class CharConverter implements TypeConverter {
    
    /**
     *
     */
    public CharConverter() {
    }
    
    public Object getObject(String value) {
        if ( value != null ) {
            return new Character(value.charAt(0));
        }
        else {
            return null;
        }
    }
    
}

⌨️ 快捷键说明

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