if a class implements the Cloneable interface then it should have a public" 'clone ()' method It should be declared to throw CloneNotSupportedException', but subclasses do not need the "throws" declaration unless their 'clone ()' method will throw the exception Thus subclasses can decide to not supp
()
| 77 | * @throws CloneNotSupportedException |
| 78 | */ |
| 79 | @Override |
| 80 | public PObject clone() throws CloneNotSupportedException |
| 81 | { |
| 82 | return (PObject) super.clone(); |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Compares the keys of the object. |
no outgoing calls