public interface Copiable
copy
method,
such as y = x.copy()
, is required to return an object
y
for which the following conditions hold true:
y
is the same as the state of x
.w
referenced by y
is the same as the corresponding object referenced by x
, and
so on recursively for every object referenced by w
.y
or, recursively, in any
other object referenced by y
, is not going to affect
x
or recursively, any other object referenced by
x
.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
copy()
Makes a copy of this object.
|