Java by API/java.beans/ConstructorProperties

Материал из Java эксперт
Перейти к: навигация, поиск

java.beans.ConstructorProperties;

   <source lang="java">
 

import java.beans.ConstructorProperties; public class Point {

 private double x, y;
 public Point() {
 }
 @ConstructorProperties({"x", "y"})
 public Point(double x, double y) {
   this.x = x;
   this.y = y;
 }

}


 </source>