Int2D
コンテンツ
[
隠れる
]Inheritance: java.lang.Object
public final class Int2D
lexchou が 2017/5/17 に作成。2 次元 int 配列ラッパー
コンストラクタ
| コンストラクタ | 説明 |
|---|---|
| Int2D(int rows, int columns) | デフォルトのデータ割り当てで 2D int 配列を構築します。 |
| Int2D(int rows, int columns, int[] data) | 指定されたデータで 2D int 配列を構築します。 |
メソッド
| メソッド | 説明 |
|---|---|
| equals(Object arg0) | |
| get(int r, int c) | 指定された位置の要素を取得します |
| getClass() | |
| getColumns() | |
| getLength(int rank) | |
| getRows() | |
| hashCode() | |
| length() | この2次元配列の総長さを取得します |
| notify() | |
| notifyAll() | |
| set(int r, int c, int v) | 指定された位置の要素を設定します |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
Int2D(int rows, int columns)
public Int2D(int rows, int columns)
デフォルトのデータ割り当てで 2D int 配列を構築します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 行 | int | 2次元配列の行数 |
| 列 | int | 2次元配列の列数 |
Int2D(int rows, int columns, int[] data)
public Int2D(int rows, int columns, int[] data)
指定されたデータで 2D int 配列を構築します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| 行 | int | 2次元配列の行数 |
| 列 | int | 2次元配列の列数 |
| データ | int[] | ラップする配列、Float2Dは内部でこの配列を使用します。 |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
get(int r, int c)
public int get(int r, int c)
指定された位置の要素を取得します
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| r | int | 行 |
| c | int | 列 |
Returns: int - 指定された位置の値
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getColumns()
public int getColumns()
Returns: int
getLength(int rank)
public int getLength(int rank)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| ランク | int |
Returns: int
getRows()
public int getRows()
Returns: int
hashCode()
public native int hashCode()
Returns: int
length()
public int length()
この2次元配列の総長さを取得します
Returns: int - この2次元配列の浮動小数点数の総数。
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
set(int r, int c, int v)
public void set(int r, int c, int v)
指定された位置の要素を設定します
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| r | int | 行 |
| c | int | 列 |
| v | int | 値 |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | long | |
| arg1 | int |