public interface CloneableEntry extends Entry, Cloneable
Modifier and Type | Method and Description |
---|---|
Entry |
clone()
Clone has been implemented in AbstractEntry to allow utilities such as
net.jini.lookup.ServiceDiscoveryManager to avoid sharing
internally stored mutable Entry instances with client code. |
Entry clone()
net.jini.lookup.ServiceDiscoveryManager
to avoid sharing
internally stored mutable Entry instances with client code.
Entry's that have mutable fields, for example arrays or collections,
should override this method, call super.clone(), then safely copy
any mutable fields before returning the Entry clone.Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.