自分のタイプを自動ボックス化できないことを理解した後も、割り当て時に自動的に調整される値が必要なままです。これは機能しますか、それとも単にフリーズしますか?そうでない場合は、助けていただければ幸いです。
while(true){
if(x){
y=z
}
}
注:クラスをより適切に説明すると役立つ場合があるため、ここで説明します。これは基本的に整数と同じですが、最大値と最小値が必要です。その値が>maxの場合、minから開始し、その逆も同様である必要があります。例:
LoopInteger i = new LoopInteger(0, 3, 0); //min, max, value
i.setValue(5); //When this is run, i need it to set the value to 1, as it is two more than the max of 3
i.setValue(-2); //The same here, except now it has to be set to 2, as it is two less than the min of 0.
基本的には、少なくとも構成可能な最大値で署名されていません。