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

org.molgenis.gson.AutoGson Maven / Gradle / Ivy

There is a newer version: 8.4.5
Show newest version
package org.molgenis.gson;

import com.google.gson.Gson;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation to allow {@link Gson} to construct @AutoValue annotated classes
 *
 * @author JakeWharton
 * @see https://gist.github.com/JakeWharton/0d67d01badcee0ae7bc9
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface AutoGson
{
	// A reference to the AutoValue-generated class (e.g. AutoValue_MyClass). This is
	// necessary to handle obfuscation of the class names.
	Class autoValueClass();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy