相关疑难解决方法(0)

使用getters()或在POJO中使用直接字段访问?

给定一个简单的POJO确实会产生影响,或者使用以下任何一种方法可能会产生副作用:

total = getPriorAmount() + getCurrentAmount();
Run Code Online (Sandbox Code Playgroud)

要么

total = this.priorAmount + this.currentAmount;
Run Code Online (Sandbox Code Playgroud)

在POJO中使用时.

java

2
推荐指数
1
解决办法
1016
查看次数

标签 统计

java ×1