PowerRange

PowerRange

PowerRangeオブジェクトを作成して初期化します。

public PowerRange(int min, int max);

引数名

In/Out

説明

min

In

int

powerの最小値

max

In

int

powerの最大値

サンプルコード:

   PowerRange powerRange = new PowerRange(1, 10);

getMin

powerの最小値を取得します。

public int getMin();

引数名

In/Out

説明

戻り値

Out

int

powerの最小値

サンプルコード:

  int min = powerRange.getMin();

setMin

powerの最小値を設定します。

public void setMin(int min);

引数名

In/Out

説明

min

In

int

powerの最小値

サンプルコード:

  powerRange.setMin(1);

getMax

powerの最大値を取得します。

public int getMax();

引数名

In/Out

説明

戻り値

Out

int

powerの最大値

サンプルコード:

  int max = powerRange.getMax();

setMax

powerの最大値を設定します。

public void setMax(int max);

引数名

In/Out

説明

max

In

int

powerの最大値

サンプルコード:

  powerRange.setMax(10);