com.fasterxml.jackson.databind.annotation.EnumNaming Maven / Gradle / Ivy
The newest version!
package com.fasterxml.jackson.databind.annotation;
import com.fasterxml.jackson.databind.EnumNamingStrategy;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation that can be used to indicate a {@link EnumNamingStrategy}
* to use for annotated class.
*
* @since 2.15
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@com.fasterxml.jackson.annotation.JacksonAnnotation
public @interface EnumNaming {
/**
* @return Type of {@link EnumNamingStrategy} to use, if any. Default value
* of EnumNamingStrategy.class
means "no strategy specified"
* (and may also be used for overriding to remove otherwise applicable
* naming strategy)
*
* @since 2.15
*/
public Class extends EnumNamingStrategy> value();
}