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

com.ppiech.auto.value.jackson.annotation.JsonProperty Maven / Gradle / Ivy

There is a newer version: 0.1.2
Show newest version
package com.ppiech.auto.value.jackson.annotation;

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

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.CLASS;

/**
 * Declare that a property should be parsed/serialized.
 * 

 * {@literal @}JsonProperty(name = "random_variable_name")
 * public String randomVariableName;
 * 
*/ @Target(METHOD) @Retention(CLASS) public @interface JsonProperty { /** * @return The name(s) of this field in JSON. Use an array if this could be represented by multiple names. */ String[] name() default {}; /** * @return The TypeConverter that will be used to parse/serialize this variable. * */ Class typeConverter() default void.class; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy