Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Bojan Tomić edited this page Mar 6, 2017 · 7 revisions

Introduction

This library allows you to

  • Check if two types are supertypes of each other

  • Get the erasure of a type

  • Calculate the exact supertype of a given class

    Example

    For

    class X<T> implements List<List<T>> {...}

    and

    class Y extends X<String>

    the exact supertype for interface List of Y is List<List<String>>.

  • Get the exact return type of methods, parameter types of methods and constructors, and types of fields (taking type parameters into account)

  • Apply capture conversion

With full support for wildcards, array types, raw types and captured types

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /