Skip to content

RFE: Add a convenience method for the full set of types for a type #50

Open
@ljnelson

Description

@ljnelson

Thanks for a great project!

It would be helpful if there were a method on ResolvedType that could provide a List or Set of all implemented and extended Types.

I know that ResolvedType has getImplementedInterfaces(). And I know that TypeResolver has getParentClass(). It would be nice if there were a method like public Set<ResolvedType> getAllTypes() or something of that nature implemented in terms of the other two.

I would expect, for example, that if it were passed String.class the returned set would include types representing:

  • Object
  • Comparable<String>
  • CharSequence
  • String
  • Serializable

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIssue that seems easy to resolve and is likely a good candidate for contributors new to projecthacktoberfestIssue related to Hactoberfest2020 activities, eligible for additional rewards

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions