- ?
if (methodName.equals("set" + this.name)
|| methodName.equals("get" + this.name)
|| (isBoolean() && methodName.equals("is" + this.name))) {
...
}
, , , , . , isBoolean ( 1, 2 4 , 1 3, / , , , ).
" ?" :
.
, , .
if. .
Notice that I have included parentheses around the expression containing '& &' for readability. They are not needed because it x && yis rated before m || n.
If you decide to use it is up to you, but I try to avoid it for readability.
source
share