Package one.microstream.typing
Class Copyable.Static
- java.lang.Object
-
- one.microstream.typing.Copyable.Static
-
-
Constructor Summary
Constructors Constructor Description Static()
-
Method Summary
Modifier and Type Method Description static <T extends Copyable>
Tcopy(T copyable)
Returns eithernull
if the passed instance isnull
, otherwise returns the instance created by the call toCopyable.copy()
.
-
-
-
Method Detail
-
copy
public static <T extends Copyable> T copy(T copyable)
Returns eithernull
if the passed instance isnull
, otherwise returns the instance created by the call toCopyable.copy()
.- Type Parameters:
T
- The type of theCopyable
instance.- Parameters:
copyable
- the instance whoseCopyable.copy()
method shall be called to create the copy.- Returns:
- the copy created by the call to the
Copyable.copy()
method from the passed instance.
-
-