public interface Name extends CharSequence
Name来自同一执行对象是在集合使用,同时Name从不同的实现S可以不收藏正常工作。
一个空的Name的长度为零。
在上下文annotation processing ,对于“同一”实施的保障必须包括环境,其中API mediated副作用processors可能是彼此可见,包括连续的注释处理rounds 。
Elements.getName(java.lang.CharSequence)
| Modifier and Type | Method and Description |
|---|---|
boolean |
contentEquals(CharSequence cs)
将此名称与指定的CharSequence进行
CharSequence 。
|
boolean |
equals(Object obj)
返回
true如果参数表示相同的名称,
this和
false其他。
|
int |
hashCode()
服从的总承包
Object.hashCode 。
|
charAt, chars, codePoints, length, subSequence, toStringboolean equals(Object obj)
true如果参数表示相同的名称, this和false其他。
请注意, Name的身份是其Name序列中的其内容以及创建它的实现的函数。
equals在
Object
obj - 要与该元素进行比较的对象
true如果指定的对象表示与此相同的名称
Element.equals(java.lang.Object)
int hashCode()
Object.hashCode 。
hashCode在
Object
equals(java.lang.Object)
boolean contentEquals(CharSequence cs)
CharSequence 。
其结果是true当且仅当该名字代表的相同序列char值作为指定的序列。
cs - 比较这个名字的顺序
true如果此名称代表与指定序列相同的
char值,
false否则
String.contentEquals(CharSequence)
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.