|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectcom.JRcServer.commons.util.box.TripleIntBox
public class TripleIntBox
3要素固定配列オブジェクト.
3つの数値[int(32bit)]の固定配列を管理するオブジェクトです.
また、このオブジェクトは同期されていません.
| コンストラクタの概要 | |
|---|---|
TripleIntBox()
コンストラクタ. |
|
TripleIntBox(int size)
コンストラクタ. |
|
| メソッドの概要 | |
|---|---|
int |
add(int one,
int two,
int three)
情報を追加. |
int |
addSpace(int size)
領域を追加. |
void |
clear()
情報クリア. |
void |
create(int size)
情報生成. |
int |
getMaxSize()
管理要素長を取得. |
int |
getOne(int no)
1つめのデータ情報を取得. |
int |
getThree(int no)
3つめのデータ情報を取得. |
int |
getTwo(int no)
2つめのデータ情報を取得. |
int |
getUseSize()
利用中の要素長を取得. |
boolean |
isCreate()
生成チェック. |
boolean |
isData(int no)
情報存在チェック. |
void |
remove(int no)
対象要素位置を削除. |
int |
removeSpace(int size)
領域を削除. |
void |
set(int no,
int one,
int two,
int three)
情報を設定. |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public TripleIntBox()
public TripleIntBox(int size)
throws InputException
size - 生成対象サイズを設定します.
InputException - 入力例外.| メソッドの詳細 |
|---|
public final void create(int size)
throws InputException
BaseBox 内の createsize - 生成対象サイズを設定します.
InputException - 入力例外.public final void clear()
BaseBox 内の clearpublic final int addSpace(int size)
BaseBox 内の addSpacesize - 追加対象のサイズを設定します.
public final int removeSpace(int size)
BaseBox 内の removeSpacesize - 削除対象のサイズを設定します.
public final int add(int one,
int two,
int three)
one - 追加対象の1つめの要素を設定します.two - 追加対象の2つめの要素を設定します.three - 追加対象の3つめの要素を設定します.
public final void set(int no,
int one,
int two,
int three)
no - 設定対象の項番を設定します.one - 追加対象の1つめの要素を設定します.two - 追加対象の2つめの要素を設定します.three - 追加対象の3つめの要素を設定します.public final void remove(int no)
no - 削除対象の要素項番を設定します.public final int getOne(int no)
no - 取得対象の項番を設定します.
public final int getTwo(int no)
no - 取得対象の項番を設定します.
public final int getThree(int no)
no - 取得対象の項番を設定します.
public final int getMaxSize()
BaseBox 内の getMaxSizepublic final int getUseSize()
BaseBox 内の getUseSizepublic final boolean isData(int no)
BaseBox 内の isDatano - チェック対象の要素項番を設定します.
public final boolean isCreate()
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||