📄 integerutility.java
字号:
/** * Description: The description of a utility: an AbstractNode with value in integer type. * * @ Author Create/Modi Note * Xiaofeng Xie Feb 20, 2004 * */package Global.basic.nodes.utilities;import Global.methods.*;public class IntegerUtility extends StringableUtility { public IntegerUtility(String outName) { super(outName); this.description = "int"; } public IntegerUtility(String outName, int defaultV) { this(outName); this.setValue(new Integer(defaultV)); } public boolean isValidDataType(Object data) { try { data = getRealObject(data.toString()); return true; } catch (Exception e) { return false; } } public String getValueString() { return TypeConverter.toString(getDefaultValue()); } public Object getClonedValue(Object value) { if(value==null) return null; return new Integer(value.toString()); } public int getDefaultValue() { return ((Integer)value).intValue(); } protected Object getRealObject(String sVal) throws Exception { return new Integer(TypeConverter.toInteger(sVal)); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -