public interface ResolvedType
A wrapper for
TypeName
that uses the resolved name for equals and hashCode.
This allows us to collect interfaces including type arguments.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResolvedType
Create a type name from a type name.static ResolvedType
Create a type name from a type (such as class).static ResolvedType
Creates a type name from a fully qualified class name.The resolved name including all type arguments.type()
Provides the underlying type name that backs this resolved type.
-
Method Details
-
create
Create a type name from a type (such as class).- Parameters:
type
- the type- Returns:
- type name for the provided type
-
create
Creates a type name from a fully qualified class name.- Parameters:
typeName
- the FQN of the class type- Returns:
- the TypeName for the provided type name
-
create
Create a type name from a type name.- Parameters:
typeName
- the type- Returns:
- type name for the provided type
-
type
TypeName type()Provides the underlying type name that backs this resolved type.- Returns:
- the type name this resolved type represents
-
resolvedName
String resolvedName()The resolved name including all type arguments.- Returns:
- fully qualified class name with all type arguments
-