Package ome.util.mem
Interface Copiable
-
- All Known Subinterfaces:
PlaneArea
- All Known Implementing Classes:
CopiableArray,EllipseArea,Handle,RectangleArea
public interface CopiableRequires an implementing class to provide deep copies of its instances. More precisely, an invocation of thecopymethod, such asy = x.copy(), is required to return an objectyfor which the following conditions hold true:- The state of
yis the same as the state ofx. - The state of any object
wreferenced byyis the same as the corresponding object referenced byx, and so on recursively for every object referenced byw. - Any subsequent state change in
yor, recursively, in any other object referenced byy, is not going to affectxor recursively, any other object referenced byx.
- Since:
- OME2.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectcopy()Makes a copy of this object.
-