有时我不需要简单地在我的应用程序中验证smth,还需要在验证之前/之后更改它。也就是说。self.left_restreams - self.restreams #to be sure there's no intersectionsend
但我觉得这不是一个适合做这些事情的地方,所以我需要知道做这件事的方法是什么?
代码是这样的: public Type; public int carId; public String manufacturer; .. etc现在,Type是一个枚举,以飞机和汽车为2值。条件是,如果Type是平面的,那么需要填充planeId,否则必须填充CarId。由于class Foo有许多