net.sf.borg.model.entity
Class KeyedEntity<T>

java.lang.Object
  extended by net.sf.borg.model.entity.KeyedEntity<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Address, EncryptableEntity, Link, Project, Subtask, Task, Tasklog

public abstract class KeyedEntity<T>
extends Object
implements Serializable

Abstract base class for all Entities that are keyed by a simple integer key

See Also:
Serialized Form

Constructor Summary
KeyedEntity()
           
 
Method Summary
 boolean canEqual(Object other)
           
protected  T clone()
           
 T copy()
          Copy the entity
 boolean equals(Object o)
           
 int getKey()
           
 int hashCode()
           
 void setKey(int key)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyedEntity

public KeyedEntity()
Method Detail

copy

public T copy()
Copy the entity

Returns:
a copy

clone

protected T clone()
Overrides:
clone in class Object

getKey

public int getKey()

setKey

public void setKey(int key)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

canEqual

public boolean canEqual(Object other)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Generated December 30 2011 by mbb using Apache Ant(TM) version 1.8.2 compiled on December 20 2010 and Java version 1.6.0_30 from Sun Microsystems Inc. on Linux i386 3.0.0-14-generic-pae