public class LogItem
extends java.lang.Object
implements java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
java.util.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
|
LogItem(int logTime,
java.util.ArrayList<LogContent> contents)
Construct a logItem with a certain time stamp and log contents
|
限定符和类型 | 方法和说明 |
---|---|
java.util.ArrayList<LogContent> |
GetLogContents()
Get log contents
|
int |
GetTime()
Get log time
|
void |
PushBack(LogContent content)
Add a log content to the log
|
void |
PushBack(java.lang.String key,
java.lang.String value)
Add a log content key/value pair to the log
|
void |
SetLogContents(java.util.ArrayList<LogContent> contents)
set log contents
|
void |
SetTime(int logTime)
Set logTime
|
java.lang.String |
ToJsonString() |
public int mLogTime
public java.util.ArrayList<LogContent> mContents
public LogItem()
public LogItem(int logTime)
logTime
- log time stamppublic LogItem(int logTime, java.util.ArrayList<LogContent> contents)
logTime
- log time stampcontents
- log contentspublic void SetTime(int logTime)
logTime
- log timepublic int GetTime()
public void PushBack(java.lang.String key, java.lang.String value)
key
- log content keyvalue
- log content valuepublic void PushBack(LogContent content)
content
- log contentpublic void SetLogContents(java.util.ArrayList<LogContent> contents)
contents
- log contentspublic java.util.ArrayList<LogContent> GetLogContents()
public java.lang.String ToJsonString()