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:

パラメーター型説明
行int2次元配列の行数
列int2次元配列の列数

Int2D(int rows, int columns, int[] data)

public Int2D(int rows, int columns, int[] data)

指定されたデータで 2D int 配列を構築します。

Parameters:

パラメーター型説明
行int2次元配列の行数
列int2次元配列の列数
データint[]ラップする配列、Float2Dは内部でこの配列を使用します。

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

パラメーター型説明
arg0java.lang.Object

Returns: boolean

get(int r, int c)

public int get(int r, int c)

指定された位置の要素を取得します

Parameters:

パラメーター型説明
rint行
cint列

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:

パラメーター型説明
rint行
cint列
vint値

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

パラメーター型説明
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

パラメーター型説明
arg0long
arg1int