Class CopyUtil
java.lang.Object
org.jboss.jca.common.api.metadata.CopyUtil
A CopyUtil.
- Author:
- Stefano Maestri
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends CopyableMetaData>
Tclone(T input) Clone an IDDecoratedMetadata taking care of null cheksstatic <T extends CopyableMetaData>
List<T>clone a list of IdDecoratedMetadata and deep into the elementscloneListOfStrings(List<String> list) clone a list of string deep into elementsstatic StringcloneString(String input) clone a String
-
Constructor Details
-
CopyUtil
public CopyUtil()
-
-
Method Details
-
cloneList
clone a list of IdDecoratedMetadata and deep into the elements- Type Parameters:
T- type extendingCopyableMetaData- Parameters:
list- the list to clone- Returns:
- cloned list
-
cloneListOfStrings
clone a list of string deep into elements- Parameters:
list- the list to clone- Returns:
- cloned list
-
cloneString
clone a String- Parameters:
input- the input- Returns:
- cloned String
-
clone
Clone an IDDecoratedMetadata taking care of null cheks- Type Parameters:
T- type extendingCopyableMetaData- Parameters:
input- type extending IdDecoratedMetadata- Returns:
- cloned input
-