public abstract class TextSyntax extends Object implements Serializable, Cloneable
| Modifier | Constructor and Description |
|---|---|
protected |
TextSyntax(String value, Locale locale)
构造具有指定字符串和语言环境的TextAttribute。
|
protected TextSyntax(String value, Locale locale)
value - 文本字符串。
locale - 文本字符串的自然语言。
null解释为默认的语言环境,通过返回Locale.getDefault()
NullPointerException - (未选中的异常)如果
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于此文本属性,则为true,否则为false。
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.