コード例 #1
0
 public CameraBuilder withApproach(Direction approach) {
   data.addApproach(approach);
   return this;
 }
コード例 #2
0
 public Camera build() {
   return new Camera(data.getLocation(), data.getApproaches());
 }
コード例 #3
0
 public CameraBuilder withLocation(Location location) {
   data.setLocation(location);
   return this;
 }