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