| Modifier and Type | Field and Description |
|---|---|
| private final Type[] | |
| private final Type | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public Type[] | Returns: an array ofType objects representing the actual type
arguments to this typeImplements java. Returns an array of |
| public Type | Returns: aType object representing the type that
this type is a member of. If this type is a top-level type,
null is returnedImplements java. Returns a |
| public Class | Returns: theType object representing the class or interface
that declared this typeImplements java. Returns the |
| public int | |
| public static ParameterizedTypeImpl | Returns: An instance ofParameterizedTypethe Class representing the generic type declaration being
instantiated rawType, Type[] a (possibly empty) array of types
representing the actual type arguments to the parameterized type actualTypeArguments, Type the enclosing type, if known. ownerType)Static factory. |
| public String | |
| private void |
| actualTypeArguments | back to summary |
|---|---|
| private final Type[] actualTypeArguments | |
| ownerType | back to summary |
|---|---|
| private final Type ownerType | |
| rawType | back to summary |
|---|---|
| private final Class<?> rawType | |
| ParameterizedTypeImpl | back to summary |
|---|---|
| private ParameterizedTypeImpl(Class<?> rawType, Type[] actualTypeArguments, Type ownerType) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getActualTypeArguments | back to summary |
|---|---|
| public Type[] getActualTypeArguments() Implements java. Returns an array of Note that in some cases, the returned array be empty. This can occur if this type represents a non-parameterized type nested within a parameterized type.
| |
| getOwnerType | back to summary |
|---|---|
| public Type getOwnerType() Implements java. Returns a If this type is a top-level type,
| |
| getRawType | back to summary |
|---|---|
| public Class Implements java. Returns the
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| make | back to summary |
|---|---|
| public static ParameterizedTypeImpl make(Class<?> rawType, Type[] actualTypeArguments, Type ownerType) Static factory. Given a (generic) class, actual type arguments and an owner type, creates a parameterized type. This class can be instantiated with a raw type that does not represent a generic type, provided the list of actual type arguments is empty. If the ownerType argument is null, the declaring class of the raw type is used as the owner type. This method throws a MalformedParameterizedTypeException
under the following circumstances:
If the number of actual type arguments (i.e., the size of the
array
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| validateConstructorArguments | back to summary |
|---|---|
| private void validateConstructorArguments() | |