Interface CopyableValueContainer
- All Superinterfaces:
ValueContainer
- All Known Subinterfaces:
DataManipulator, DataManipulator.Immutable, DataManipulator.Mutable
Represents a
ValueContainer that can be copied.-
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a clone copy of thisCopyableValueContaineras a newCopyableValueContainersuch that all theValues are safely duplicated to the new instance.Methods inherited from interface ValueContainer
get, getDouble, getInt, getKeys, getLong, getOrElse, getOrNull, getValue, getValues, require, requireValue, streamKeys, streamValues, supports, supports
-
Method Details
-
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
-