|
Préférences
Moteurs de recherche
|
|||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.lang.model.type
|
Method Summary | ||
---|---|---|
|
accept(TypeVisitor<R,P> v,
P p)
Applies a visitor to this type. |
|
boolean |
equals(Object obj)
Obeys the general contract of Object.equals . |
|
TypeKind |
getKind()
Returns the kind of this type. |
|
int |
hashCode()
Obeys the general contract of Object.hashCode . |
|
String |
toString()
Returns an informative string representation of this type. |
Method Detail |
---|
TypeKind getKind()
kind
of this type.
boolean equals(Object obj)
Object.equals
.
This method does not, however, indicate whether two types represent
the same type.
Semantic comparisons of type equality should instead use
Types.isSameType(TypeMirror, TypeMirror)
.
The results of t1.equals(t2)
and
Types.isSameType(t1, t2)
may differ.
obj
- the object to be compared with this type
true
if the specified object is equal to this oneObject.hashCode()
,
Hashtable
int hashCode()
Object.hashCode
.
equals(java.lang.Object)
String toString()
<R,P> R accept(TypeVisitor<R,P> v, P p)
R
- the return type of the visitor's methodsP
- the type of the additional parameter to the visitor's methodsv
- the visitor operating on this typep
- additional parameter to the visitor