public final class TypeReference
extends java.lang.Object
Subject to change without notice.
Modifier and Type | Field | Description |
---|---|---|
java.lang.annotation.Annotation[] |
annotations |
The annotations associated with the reference of this type.
|
javax.xml.namespace.QName |
tagName |
The associated XML element name that the JAX-RPC uses with this type reference.
|
java.lang.reflect.Type |
type |
The Java type that's being referenced.
|
Constructor | Description |
---|---|
TypeReference(javax.xml.namespace.QName tagName,
java.lang.reflect.Type type,
java.lang.annotation.Annotation... annotations) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
<A extends java.lang.annotation.Annotation> |
get(java.lang.Class<A> annotationType) |
Finds the specified annotation from the array and returns it.
|
int |
hashCode() |
|
TypeReference |
toItemType() |
Creates a
TypeReference for the item type,
if this TypeReference represents a collection type. |
public final javax.xml.namespace.QName tagName
public final java.lang.reflect.Type type
public final java.lang.annotation.Annotation[] annotations
public TypeReference(javax.xml.namespace.QName tagName, java.lang.reflect.Type type, java.lang.annotation.Annotation... annotations)
public <A extends java.lang.annotation.Annotation> A get(java.lang.Class<A> annotationType)
public TypeReference toItemType()
TypeReference
for the item type,
if this TypeReference
represents a collection type.
Otherwise returns an identical type.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2018 Oracle Corporation. All rights reserved.