untypedatomic.java

来自「A framework written in Java for implemen」· Java 代码 · 共 34 行

JAVA
34
字号
package gnu.kawa.xml;/** A loosely typed string. * Can be cast as needed to numbers and other types. * Implements the {@code xs:untypedAtomic} type of XPath/XQuery, which use * it to represent attribute and text values of unvalidated XML. */public class UntypedAtomic{  String text;  public String toString ()  {    return text;  }  public UntypedAtomic (String text)  {    this.text = text;  }  public int hashCode ()  {    return text.hashCode();  }  public boolean equals (Object arg)  {    return arg instanceof UntypedAtomic      && text.equals(((UntypedAtomic) arg).text);  }}

⌨️ 快捷键说明

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