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

com.github.houbb.property.annotation.PropertyField Maven / Gradle / Ivy

There is a newer version: 0.0.9
Show newest version
package com.github.houbb.property.annotation;

import com.github.houbb.property.support.converter.IValueConverter;
import com.github.houbb.property.support.converter.impl.DefaultValueConverter;

import java.lang.annotation.*;

/**
 * 属性字段注解
 * @author binbin.hou
 * @since 0.0.2
 */
@Documented
@Inherited
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface PropertyField {

    /**
     * 属性别称
     * @return 别称
     * @since 0.0.2
     */
    String value() default "";

    /**
     * 字段转换类
     * @return 结果
     * @since 0.0.2
     */
    Class converter() default DefaultValueConverter.class;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy