0
この取得/設定のアプローチは正しいでしょうか?canProduceのようなブール値に対して、Javaでgetter/setter命名規則とは何ですか?
boolean canProduce;
public boolean getCanProduce() {
return canProduce;
}
public void setCanProduce(boolean canProduce) {
this.canProduce = canProduce;
}
または、私は設定方法を使用する必要がありますか?
を'setAbleToProduce' ... –
これは私が意味していたものです。私はそれを変更します。ありがとう – megalucio