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(Object 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, waitinvokepublic AbstractCodeTemplate()
public AbstractCodeTemplate(String id)
id - The ID for this template.IllegalArgumentException - If id is null.public Object clone()
clone in interface CodeTemplateclone in class Objectpublic int compareTo(Object o)
StaticCodeTemplate to another.compareTo in interface Comparableo - Another StaticCodeTemplate object.ClassCastException - If o is
not an instance of CodeTemplate.public boolean equals(Object obj)
public String getID()
getID in interface CodeTemplatesetID(String)public int hashCode()
public void setID(String id)
id - The ID for this template.IllegalArgumentException - If id is null.getID()Copyright © 2009-2013 jtstand.com. All Rights Reserved.