Type Of
Provides a way to preserve high-fidelity Type information on generic types. Capture a generic type with an anonymous subclass. For example:
new TypeOf<NamedDomainObjectContainer<ArtifactRepository>>() {}
Content copied to clipboard
Since
3.5
Parameters
<T>
Parameterized type
Functions
Link copied to clipboard
Returns the list of type arguments used in the construction of this parameterized type.
Link copied to clipboard
Returns the component type of the array type this object represents.
Link copied to clipboard
This returns the underlying, concrete Java java.lang.Class.
Link copied to clipboard
Fully Qualified name.
Link copied to clipboard
Returns the first declared lower-bound of the wildcard type expression represented by this type.
Link copied to clipboard
Returns an object that represents the type from which this parameterized type was constructed.
Link copied to clipboard
Simple name.
Link copied to clipboard
Returns the first declared upper-bound of the wildcard type expression represented by this type.
Link copied to clipboard
Is this type assignable from the given type?
Link copied to clipboard
Queries whether this object represents a parameterized type.
Link copied to clipboard
Queries whether this object represents a synthetic type as defined by isSynthetic.
Link copied to clipboard
Queries whether this object represents a wildcard type expression, such as
?
, ? extends Number
, or ? super Integer
.Link copied to clipboard