Int2D
内容
[
隐藏
]Inheritance: java.lang.Object
public final class Int2D
由 lexchou 于 2017/5/17 创建。二维 int 数组包装器
构造函数
| 构造函数 | 描述 |
|---|---|
| Int2D(int rows, int columns) | 使用默认数据分配构造二维 int 数组。 |
| Int2D(int rows, int columns, int[] data) | 使用给定数据构造二维 int 数组 |
方法
Int2D(int rows, int columns)
public Int2D(int rows, int columns)
使用默认数据分配构造二维 int 数组。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 行 | int | 二维数组的行数 |
| 列 | int | 二维数组的列数 |
Int2D(int rows, int columns, int[] data)
public Int2D(int rows, int columns, int[] data)
使用给定数据构造二维 int 数组
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 行 | int | 二维数组的行数 |
| 列 | int | 二维数组的列数 |
| 数据 | int[] | 要包装的数组,Float2D 将在内部使用此数组。 |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: 布尔
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:
| 参数 | 类型 | 描述 |
|---|---|---|
| rank | int |
Returns: int
getRows()
public int getRows()
Returns: int
hashCode()
public native int hashCode()
Returns: int
length()
public int length()
获取此二维数组的总长度
Returns: int - 此二维数组中浮点数的总数。
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 |