T - 类型对象public class SharpList<T> extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Add(Iterable<T> values)
批量的增加数据
Increase data in batches
|
void |
AddValue(T value)
新增一个数据值
Add a data value |
T |
getByIndex(int index)
获取指定索引的位置的数据
Gets the data at the specified index
|
int |
getCount()
获取数据的个数信息
Get the number of arrays |
T |
LastValue()
获取最后一个值,如果从来没有添加过,则引发异常
Gets the last value and throws an exception if it has never been added |
void |
setByIndex(int index,
T value)
设置指定索引的位置的数据
Sets the data at the specified index
|
T[] |
ToArray()
获取数据的数组值
Get array value of data
|
public int getCount()
public void AddValue(T value)
value - 数据值信息public T[] ToArray()
ClassCastException - 数据转换异常的类public T getByIndex(int index) throws IndexOutOfBoundsException
index - 索引位置IndexOutOfBoundsException - 索引超出的异常public T LastValue()
public void setByIndex(int index,
T value)
throws IndexOutOfBoundsException
index - 索引位置value - 数据值IndexOutOfBoundsExceptionCopyright © 2022. All rights reserved.