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 aValueContainerthat can be copied.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CopyableValueContainercopy()Creates a clone copy of thisCopyableValueContaineras a newCopyableValueContainersuch that all theValues are safely duplicated to the new instance.
-
-
-
Method Detail
-
copy
CopyableValueContainer copy()
Creates a clone copy of thisCopyableValueContaineras a newCopyableValueContainersuch that all theValues 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
-
-