T - CloneBehavior typepublic class RedefinedCloneBehavior<T extends CloneBehavior<T>> extends Object implements GlobalCloneBehavior<T>
GlobalCloneBehavior for objects implementing CloneBehavior.Clone,
CloneBehavior,
Serialized Form| Constructor and Description |
|---|
RedefinedCloneBehavior() |
| Modifier and Type | Method and Description |
|---|---|
T |
clone(RecursiveClone clone,
T object,
int depth)
Returns clone of the specified object.
|
boolean |
isStorable()
Return whether or not values cloned by this behavior are storable for recursive clone operation.
|
boolean |
supports(RecursiveClone clone,
Object object)
Returns whether or not this behavior supports cloning of the specified object.
|
public boolean supports(@NotNull RecursiveClone clone, @NotNull Object object)
GlobalCloneBehaviorsupports in interface GlobalCloneBehavior<T extends CloneBehavior<T>>clone - RecursiveClone algorithmobject - object to clone, should never be nulltrue if this behavior supports cloning of the specified specified object, false otherwise@NotNull public T clone(@NotNull RecursiveClone clone, @NotNull T object, int depth)
GlobalCloneBehaviorclone in interface GlobalCloneBehavior<T extends CloneBehavior<T>>clone - RecursiveClone algorithmobject - object to clone, should never be nulldepth - clone calls stack depthpublic boolean isStorable()
GlobalCloneBehaviorisStorable in interface GlobalCloneBehavior<T extends CloneBehavior<T>>true if values cloned by this behavior are storable for recursive clone operation, false otherwiseCopyright © 2020. All rights reserved.