|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.borg.model.entity.KeyedEntity<T>
public abstract class KeyedEntity<T>
Abstract base class for all Entities that are keyed by a simple integer key
| Constructor Summary | |
|---|---|
KeyedEntity()
Creates a new instance of KeyedEntity. |
|
| Method Summary | |
|---|---|
protected T |
clone()
|
T |
copy()
Copy the entity |
int |
getKey()
Gets the key. |
void |
setKey(int k)
Sets the key. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyedEntity()
| Method Detail |
|---|
public int getKey()
public void setKey(int k)
k - the new keypublic T copy()
protected T clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||