public class KVRecords extends Object implements Serializable
| 构造器和说明 |
|---|
KVRecords() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addRecord(KVRecord kvRecord)
添加KVRecord
如果KVRecord为null,不生效
|
void |
addRecords(KVRecords kvRecords)
添加KVRecord列表
如果KVRecord列表为null或者为空,不生效
|
void |
clear()
清除所有记录
|
KVRecords |
copy()
拷贝
|
KVRecord |
getRecord(int index)
获取指定下标的KVRecord
|
int |
getRecordCount()
获取KVRecord数量
|
boolean |
isEmpty()
判断KVRecord列表是否为空
|
String |
toString() |
public KVRecords copy()
public int getRecordCount()
public boolean isEmpty()
public KVRecord getRecord(int index)
index - 下标,必须大于等于0且小于记录数public void addRecord(KVRecord kvRecord)
kvRecord - 添加KVRecordpublic void addRecords(KVRecords kvRecords)
kvRecords - 添加KVRecord列表public void clear()
Copyright © 2022. All rights reserved.