Package one.microstream.typing
Class Copyable.Static
java.lang.Object
one.microstream.typing.Copyable.Static
- Enclosing interface:
- Copyable
public static final class Copyable.Static extends Object
-
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 Details
-
copy
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.
-