Interface: javax.lang.model.element.Name

An immutable sequence of characters. When created by the same implementation, objects implementing this interface must obey the general equals contract when compared with each other. Therefore, Name objects from the same implementation are usable in collections while Names from different implementations may not work properly in collections.

An empty 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.

Authors:
@author Joseph D. Darcy
@author Scott Seligman
@author Peter von der Ahé
See:
@see javax.lang.model.util.Elements.getName(java.lang.CharSequence)
Since:
@since 1.6

Inheritance

Implements:

Methods