Package org.spongepowered.api.data.value
Interface CopyableValueContainer
-
- All Superinterfaces:
ValueContainer
- All Known Subinterfaces:
DataManipulator
,DataManipulator.Immutable
,DataManipulator.Mutable
public interface CopyableValueContainer extends ValueContainer
Represents aValueContainer
that can be copied.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CopyableValueContainer
copy()
Creates a clone copy of thisCopyableValueContainer
as a newCopyableValueContainer
such that all theValue
s are safely duplicated to the new instance.
-
-
-
Method Detail
-
copy
CopyableValueContainer copy()
Creates a clone copy of thisCopyableValueContainer
as a newCopyableValueContainer
such that all theValue
s are safely duplicated to the new instance. It is not guaranteed that the returning container is of the same type as this container.- Returns:
- The new copy
-
-