Java/JDK 6/JavaBeans — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 09:12, 1 июня 2010
@ConstructorProperties Annotation Usage
<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>