All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface jam.JamObject

public interface interface JamObject
extends Cloneable
JamObject is used to enforce any behavior which we want all (or most of the) classes in Jag to have.
We currently have copy() which is probably not generally useful enough to have in JamObject. It seems mostly useful for jam.Vector and jam.Space.
Also, the fact that we JamObject extends Cloneable is probably a bad choice. We initially thought that we could then use clone() as a shallow copy for any JamObject. The problem is that we intended the shallow copy to be public, but clone() is actually protected in java.lang.Object. It was a stupid mistake.


Method Index

 o copy()

Methods

 o copy
 public abstract JamObject copy()
Returns:
a (to some extent) deep copy of this

All Packages  Class Hierarchy  This Package  Previous  Next  Index