public abstract class AbstractCodeTemplate extends Object implements CodeTemplate
Constructor and Description |
---|
AbstractCodeTemplate()
This no-arg constructor is required for serialization purposes.
|
AbstractCodeTemplate(String id)
Creates a new template.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a deep copy of this template.
|
int |
compareTo(CodeTemplate o)
Compares the
StaticCodeTemplate to another. |
boolean |
equals(Object obj)
|
String |
getID()
Returns the ID of this code template.
|
int |
hashCode()
Returns the hash code for this template.
|
void |
setID(String id)
Sets the ID for this template.
|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
invoke
public AbstractCodeTemplate()
public AbstractCodeTemplate(String id)
id
- The ID for this template.IllegalArgumentException
- If id
is null
.public Object clone()
clone
in interface CodeTemplate
clone
in class Object
public int compareTo(CodeTemplate o)
StaticCodeTemplate
to another.compareTo
in interface Comparable<CodeTemplate>
o
- Another StaticCodeTemplate
object.ClassCastException
- If o
is
not an instance of CodeTemplate
.public boolean equals(Object obj)
public String getID()
getID
in interface CodeTemplate
setID(String)
public int hashCode()
public void setID(String id)
id
- The ID for this template.IllegalArgumentException
- If id
is null
.getID()