-  
       
@Documented @Target(构造器) @Retention(RUNTIME) public @interface ConstructorProperties
构造函数上的注释,显示该构造函数的参数如何与构造对象的getter方法相对应。 例如:
注释显示可以使用public class Point { @ConstructorProperties({"x", "y"}) public Point(int x, int y) { this.x = x; this.y = y; } public int getX() { return x; } public int getY() { return y; } private final int x, y; }getX()方法检索构造函数的第一个参数,使用getX()方法检索第二个getY()。 由于参数名称在运行时通常不可用,因此如果没有注释,则无法知道参数是对应于getX()和getY()还是相反。- 从以下版本开始:
 - 1.6
 
 
-  
        
       
-  
             
Element Detail
-  
value
String[] value
吸气者的名字。
- 结果
 - getter名称对应于带注释的构造函数中的参数。
 
 
 -  
 
 -