public class LogItem extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
ArrayList<LogContent> |
mContents |
int |
mLogTime |
| 构造器和说明 |
|---|
LogItem()
Construct a logItem, the log time is set according to the sys time
|
LogItem(int logTime)
Construct a logItem with a certain time stamp
|
| 限定符和类型 | 方法和说明 |
|---|---|
ArrayList<LogContent> |
GetLogContents()
Get log contents
|
int |
GetTime()
Get log time
|
void |
PushBack(LogContent content)
Add a log content to the log
|
void |
PushBack(String key,
String value)
Add a log content key/value pair to the log
|
void |
SetLogContents(ArrayList<LogContent> contents)
set log contents
|
void |
SetTime(int logTime)
Set logTime
|
public int mLogTime
public ArrayList<LogContent> mContents
public LogItem()
public LogItem(int logTime)
logTime - log time stamppublic void SetTime(int logTime)
logTime - log timepublic int GetTime()
public void PushBack(String key, String value)
key - log content keyvalue - log content valuepublic void PushBack(LogContent content)
content - log contentpublic void SetLogContents(ArrayList<LogContent> contents)
contents - log contentspublic ArrayList<LogContent> GetLogContents()
Copyright © 2015. All Rights Reserved.