public GenericType(Type genericType) { if (genericType == null) { throw new IllegalArgumentException("Type must not be null"); } type = genericType; rawType = getClass(type); }
public GenericType(Type genericType) { if (genericType == null) { throw new IllegalArgumentException("Type must not be null"); } type = genericType; rawType = getClass(type); }
public GenericType(Type genericType) { if (genericType == null) { throw new IllegalArgumentException("Type must not be null"); } type = genericType; rawType = getClass(type); }
public GenericType(Type genericType) { if (genericType == null) { throw new IllegalArgumentException("Type must not be null"); } type = genericType; rawType = getClass(type); }
public GenericType(Type genericType) { if (genericType == null) { throw new IllegalArgumentException("Type must not be null"); } type = genericType; rawType = getClass(type); }
/** * Constructs a new generic type, supplying the generic type * information and deriving the class. * * @param genericType the generic type. * @throws IllegalArgumentException if genericType is {@code null} or not an instance of * {@code Class} or {@link ParameterizedType} whose raw * type is an instance of {@code Class}. */ public GenericType(Type genericType) { if (genericType == null) { throw new IllegalArgumentException("Type must not be null"); } type = genericType; rawType = getClass(type); }
/** * Constructs a new generic type, deriving the generic type and class from * type parameter. Note that this constructor is protected, users should create * a (usually anonymous) subclass as shown above. * * @throws IllegalArgumentException in case the generic type parameter value is not * provided by any of the subclasses. */ protected GenericType() { // Get the type parameter of GenericType<T> (aka the T value) type = getTypeArgument(getClass(), GenericType.class); rawType = getClass(type); }
protected GenericType() { // Get the type parameter of GenericType<T> (aka the T value) type = getTypeArgument(getClass(), GenericType.class); rawType = getClass(type); }
protected GenericType() { // Get the type parameter of GenericType<T> (aka the T value) type = getTypeArgument(getClass(), GenericType.class); rawType = getClass(type); }
/** * Constructs a new generic type, deriving the generic type and class from * type parameter. Note that this constructor is protected, users should create * a (usually anonymous) subclass as shown above. * * @throws IllegalArgumentException in case the generic type parameter value is not * provided by any of the subclasses. */ protected GenericType() { // Get the type parameter of GenericType<T> (aka the T value) type = getTypeArgument(getClass(), GenericType.class); rawType = getClass(type); }
/** * Constructs a new generic type, deriving the generic type and class from * type parameter. Note that this constructor is protected, users should create * a (usually anonymous) subclass as shown above. * * @throws IllegalArgumentException in case the generic type parameter value is not * provided by any of the subclasses. */ protected GenericType() { // Get the type parameter of GenericType<T> (aka the T value) type = getTypeArgument(getClass(), GenericType.class); rawType = getClass(type); }
protected GenericType() { // Get the type parameter of GenericType<T> (aka the T value) type = getTypeArgument(getClass(), GenericType.class); rawType = getClass(type); }
/** * Constructs a new generic type, deriving the generic type and class from * type parameter. Note that this constructor is protected, users should create * a (usually anonymous) subclass as shown above. * * @throws IllegalArgumentException in case the generic type parameter value is not * provided by any of the subclasses. */ protected GenericType() { // Get the type parameter of GenericType<T> (aka the T value) type = getTypeArgument(getClass(), GenericType.class); rawType = getClass(type); }
/** * Constructs a new generic type, deriving the generic type and class from * type parameter. Note that this constructor is protected, users should create * a (usually anonymous) subclass as shown above. * * @throws IllegalArgumentException in case the generic type parameter value is not * provided by any of the subclasses. */ protected GenericType() { // Get the type parameter of GenericType<T> (aka the T value) type = getTypeArgument(getClass(), GenericType.class); rawType = getClass(type); }
protected GenericType() { // Get the type parameter of GenericType<T> (aka the T value) type = getTypeArgument(getClass(), GenericType.class); rawType = getClass(type); }
/** * Constructs a new generic type, deriving the generic type and class from * type parameter. Note that this constructor is protected, users should create * a (usually anonymous) subclass as shown above. * * @throws IllegalArgumentException in case the generic type parameter value is not * provided by any of the subclasses. */ protected GenericType() { // Get the type parameter of GenericType<T> (aka the T value) type = getTypeArgument(getClass(), GenericType.class); rawType = getClass(type); }
/** * Constructs a new generic type, deriving the generic type and class from * type parameter. Note that this constructor is protected, users should create * a (usually anonymous) subclass as shown above. * * @throws IllegalArgumentException in case the generic type parameter value is not * provided by any of the subclasses. */ protected GenericType() { // Get the type parameter of GenericType<T> (aka the T value) type = getTypeArgument(getClass(), GenericType.class); rawType = getClass(type); }
protected GenericType() { type = getTypeArgument(getClass(), GenericType.class); rawType = getClass(type); }
/** * Constructs a new generic type, deriving the generic type and class from * type parameter. Note that this constructor is protected, users should create * a (usually anonymous) subclass as shown above. * * @throws IllegalArgumentException in case the generic type parameter value is not * provided by any of the subclasses. */ protected GenericType() { // Get the type parameter of GenericType<T> (aka the T value) type = getTypeArgument(getClass(), GenericType.class); rawType = getClass(type); }
/** * Constructs a new generic type, deriving the generic type and class from * type parameter. Note that this constructor is protected, users should create * a (usually anonymous) subclass as shown above. * * @throws IllegalArgumentException in case the generic type parameter value is not * provided by any of the subclasses. */ protected GenericType() { // Get the type parameter of GenericType<T> (aka the T value) type = getTypeArgument(getClass(), GenericType.class); rawType = getClass(type); }