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

📄 doubleutility.java

📁 pso源程序
💻 JAVA
字号:
/** * Description: The description of a utility: an AbstractNode with value in double type. * * @ Author        Create/Modi     Note * Xiaofeng Xie    Feb 19, 2004 * * @version 1.0 */package Global.basic.nodes.utilities;import Global.methods.*;public class DoubleUtility extends StringableUtility {  protected DoubleUtility(String outName) {    super(outName);    this.description = "double";  }  public DoubleUtility(String outName, double defaultV) {    this(outName);    this.setValue(new Double(defaultV));  }  public boolean isValidDataType(Object data) {    try {      data = new Double(data.toString());      return true;    } catch (Exception e) {      return false;    }  }  public String getValueString() {    return TypeConverter.toString(getDefaultValue());  }  protected Object getRealObject(String sVal) throws Exception {    return new Double(TypeConverter.toDouble(sVal));  }  public double getDefaultValue() {    return ((Double)value).doubleValue();  }  public Object getClonedValue(Object value) {    if(value==null) return null;    return new Double(value.toString());  }}

⌨️ 快捷键说明

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