Package com.j3d.engine.scene.copy
Class CopyPropertiesBuilder
java.lang.Object
com.j3d.engine.scene.copy.CopyPropertiesBuilder
A builder class for creating
CopyProperties instances.
This class provides a fluent API to configure various properties
related to the copying of GObject instances.- Author:
- Lehlogonolo Poole
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCopyPropertiesBuilder(ArrayList<GObject> objects) Constructs a newCopyPropertiesBuilderwith the initial list ofGObjectinstances that are intended to be copied. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns the configuredCopyPropertiesobject.softDependencies(boolean sc) Sets whether soft dependencies should be considered during the copy operation.
-
Field Details
-
properties
-
-
Constructor Details
-
Method Details
-
softDependencies
Sets whether soft dependencies should be considered during the copy operation. Soft dependencies typically refer to objects that are referenced but not necessarily part of the core set of objects being copied.- Parameters:
sc- A boolean value.trueto enable soft dependency handling,falseto disable it.- Returns:
- The current
CopyPropertiesBuilderinstance for method chaining.
-
build
Builds and returns the configuredCopyPropertiesobject. This method should be called at the end of the builder chain to obtain the final immutableCopyPropertiesinstance.- Returns:
- The fully configured
CopyPropertiesobject.
-