Name
objects from the same
implementation are usable in collections while Name
s 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.
javax.lang.model.util.Elements#getName
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: true if this name represents the same sequence
of char values as the specified sequence, false
otherwiseThe sequence to compare this name against cs)Compares this name to the specified |
public boolean | |
public int |
contentEquals | back to summary |
---|---|
public boolean contentEquals(CharSequence cs) Compares this name to the specified
|
equals | back to summary |
---|---|
public boolean equals(Object obj) Returns Note that the identity of a
|
hashCode | back to summary |
---|---|
public int hashCode() Obeys the general contract of
|