public interface Name extends CharSequence
Nameobjects from the same implementation are usable in collections while
Names from different implementations may not work properly in collections.
Name has a length of zero.
In the context of annotation processing, the guarantees for "the same" implementation must include contexts where the API mediated side effects of processors could be visible to each other, including successive annotation processing rounds.
|Modifier and Type||Method and Description|
Compares this name to the specified
Obeys the general contract of
boolean equals(Object obj)
trueif the argument represents the same name as
Note that the identity of a
Name is a function both
of its content in terms of a sequence of characters as well as
the implementation which created it.
boolean contentEquals(CharSequence cs)
CharSequence. The result is
trueif and only if this name represents the same sequence of
charvalues as the specified sequence.
cs- The sequence to compare this name against
trueif this name represents the same sequence of
charvalues as the specified sequence,
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, 2013, Oracle and/or its affiliates. All rights reserved.