public abstract class AbstractCodeTemplate extends java.lang.Object implements CodeTemplate
构造器和说明 |
---|
AbstractCodeTemplate()
This no-arg constructor is required for serialization purposes.
|
AbstractCodeTemplate(java.lang.String id)
Creates a new template.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone()
Creates a deep copy of this template.
|
int |
compareTo(CodeTemplate o)
Compares the
StaticCodeTemplate to another. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getID()
Returns the ID of this code template.
|
int |
hashCode()
Returns the hash code for this template.
|
void |
setID(java.lang.String id)
Sets the ID for this template.
|
invoke
public AbstractCodeTemplate()
public AbstractCodeTemplate(java.lang.String id)
id
- The ID for this template.java.lang.IllegalArgumentException
- If id
is null
.public java.lang.Object clone()
clone
在接口中 CodeTemplate
clone
在类中 java.lang.Object
public int compareTo(CodeTemplate o)
StaticCodeTemplate
to another.compareTo
在接口中 java.lang.Comparable<CodeTemplate>
o
- Another StaticCodeTemplate
object.java.lang.ClassCastException
- If o
is
not an instance of CodeTemplate
.public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public java.lang.String getID()
getID
在接口中 CodeTemplate
setID(String)
public int hashCode()
hashCode
在类中 java.lang.Object
public void setID(java.lang.String id)
id
- The ID for this template.java.lang.IllegalArgumentException
- If id
is null
.getID()