📄 longattribute.java
字号:
// LongAttribute.java// $Id: LongAttribute.java,v 1.5 2002/06/09 10:14:29 ylafon Exp $// (c) COPYRIGHT MIT and INRIA, 1996.// Please first read the full copyright statement in file COPYRIGHT.htmlpackage org.w3c.tools.resources ;/** * The generic description of an LongAttribute. */public class LongAttribute extends SimpleAttribute { /** * Is the given object a valid LongAttribute value ? * @param obj The object to test. * @return A boolean <strong>true</strong> if okay. */ public boolean checkValue(Object obj) { return (obj instanceof Long) || (obj == null) ; } /** * Pickle an integer to the given output stream. * @param obj The object to pickle. */ public String pickle(Object obj) { return ((Long) obj).toString(); } /** * Unpickle an integer from the given input stream. * @param value the string representation of this integer * @return An instance of Integer. */ public Object unpickle (String value) { return Long.valueOf(value); } public LongAttribute(String name, Long def, int flags) { super(name, def, flags) ; this.type = "java.lang.Long".intern(); } public LongAttribute() { super() ; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -