/** * Copyright (c) 2010 Darmstadt University of Technology. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Johannes Lerch - initial API and implementation. */ package org.eclipse.recommenders.utils.gson; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; public class ParameterizedTypeImpl implements ParameterizedType { private final Type rawType; private final Type ownerType; private final Type[] typeArguments; public ParameterizedTypeImpl(final Type rawType, final Type ownerType, final Type... typeArguments) { this.rawType = rawType; this.ownerType = ownerType; this.typeArguments = typeArguments; } @Override public Type[] getActualTypeArguments() { return typeArguments; } @Override public Type getRawType() { return rawType; } @Override public Type getOwnerType() { return ownerType; } }