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

e.aml.org.aml.raml2java.0.0.8.source-code.PatternAndAdditionalTypeAdapterFactory.tpl Maven / Gradle / Ivy

There is a newer version: 0.11
Show newest version
package {packageName};


import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.TypeAdapterFactory;
import com.google.gson.reflect.TypeToken;

public class PatternAndAdditionalTypeAdapterFactory implements TypeAdapterFactory{

	@SuppressWarnings("unchecked")
	@Override
	public  TypeAdapter create(Gson gson, TypeToken type) {
		return new PatternAndAdditionalTypeAdapter(gson,(Class) type.getRawType());
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy