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
ServiceDiscoveryManager to avoid sharing
internally stored mutable Entry instances with client code. |
Entry clone()
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 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.