public abstract class TextSyntax extends Object implements Serializable, Cloneable
Modifier | Constructor and Description |
---|---|
protected |
TextSyntax(String value, Locale locale)
构建一个与指定的字符串和设置文本属性。
|
protected TextSyntax(String value, Locale locale)
value
文本字符串。
locale
-自然语言文本字符串。空的解释是因为
Locale.getDefault()
返回的默认区域设置
NullPointerException
-(unchecked异常)如果
value
空抛。
public String getValue()
public Locale getLocale()
public int hashCode()
hashCode
方法重写,继承类
Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public boolean equals(Object object)
object
不空。object
是类textsyntax实例。object
基本相等。object
的现场都是平等的。equals
方法重写,继承类
Object
object
对象比较。
object
相当于这个文本属性真,否则为假。
Object.hashCode()
,
HashMap
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.