R - the type of the sandbox log recordpublic abstract class SandboxLogRecord<R extends SandboxLogRecord<R>>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
summary
The summary of the record.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
values
The field values.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SandboxLogRecord(java.lang.String summary)
Creates a record.
|
| Modifier and Type | Method and Description |
|---|---|
R |
clone()
Returns an exact copy of this record.
|
abstract R |
clone(java.lang.String newSummary)
Returns a new record which is a copy of this record.
|
java.lang.Object |
get(java.lang.String name)
Gets the value of a field.
|
java.lang.String |
getSummary()
Returns the summary of this record.
|
protected void |
initValues()
Initializes
values if it is currently null. |
R |
loggedBy(java.lang.String s)
Indicates the ID of the code that logs this record.
|
protected R |
put(java.lang.String name,
java.lang.Object value)
Sets the value of a field.
|
java.lang.String |
toString() |
protected final java.lang.String summary
protected java.util.Map<java.lang.String,java.lang.Object> values
protected SandboxLogRecord(java.lang.String summary)
summary - the summary of the recordjava.lang.IllegalArgumentException - if the given summary is nullpublic final java.lang.String getSummary()
public java.lang.String toString()
toString in class java.lang.Objectpublic abstract R clone(java.lang.String newSummary)
newSummary - the new summary; null if the summary should
be kept the samepublic R clone()
clone in class java.lang.Objectclone(String)protected void initValues()
values if it is currently null.public java.lang.Object get(java.lang.String name)
name - the name of the fieldnull if the field is
undefined or not setprotected R put(java.lang.String name, java.lang.Object value)
name - the name of the fieldvalue - the value of the fieldpublic R loggedBy(java.lang.String s)
s - the ID of the code that logs this record