public class ParameterizedTypeImpl extends Object implements ParameterizedType
ParameterizedType interface. This
object allows us to build a reflective Type objects on demand. This
object is used to support serialization and deserialization of classes with
an ParameterizedType field where as least one of the actual type
parameters is a TypeVariable.
Here's an example class:
class Foo<T> {
private List<T> someList;
Foo(List<T> list) {
this.someList = list;
}
}
| Constructor and Description |
|---|
ParameterizedTypeImpl(Class<?> rawType,
Type[] actualTypeArguments,
Type owner) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Type[] |
getActualTypeArguments() |
Type |
getOwnerType() |
Type |
getRawType() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeNamepublic Type getRawType()
getRawType in interface ParameterizedTypepublic Type[] getActualTypeArguments()
getActualTypeArguments in interface ParameterizedTypepublic Type getOwnerType()
getOwnerType in interface ParameterizedTypeCopyright © 2010–2017 EvoSuite. All rights reserved.