All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fasterxml.classmate.GenericType Maven / Gradle / Ivy

Go to download

Library for introspecting types with full generic information including resolving of field and method types.

There is a newer version: 1.7.0
Show newest version
package com.fasterxml.classmate;

import java.io.Serializable;

/**
 * This class is used to pass full generics type information, and
 * avoid problems with type erasure (that basically removes most
 * usable type references from runtime Class objects).
 * It is based on ideas from
 * http://gafter.blogspot.com/2006/12/super-type-tokens.html,
 *

* Usage is by sub-classing: here is one way to instantiate reference * to generic type List<Integer>: *

 *  GenericType type = new GenericType<List<Integer>>() { };
 *
* which can be passed to methods that accept GenericReference. */ @SuppressWarnings("serial") public abstract class GenericType implements Serializable, java.lang.reflect.Type { protected GenericType() { } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy