/** * Construct a modifiable instance of {@code JCameraRotationCoefficientsType}. * @param horizontal The value for the {@link JCameraRotationCoefficientsType#horizontal() horizontal} attribute * @param vertical The value for the {@link JCameraRotationCoefficientsType#vertical() vertical} attribute * @return A new modifiable instance */ public static JCameraRotationCoefficientsMutable create(double horizontal, double vertical) { return new JCameraRotationCoefficientsMutable() .setHorizontal(horizontal) .setVertical(vertical); }
/** * Fill this modifiable instance with attribute values from the provided {@link JCameraRotationCoefficientsType} instance. * Regular attribute values will be overridden, i.e. replaced with ones of an instance. * Any of the instance's absent optional values will not be copied (will not override current values). * @param instance The instance from which to copy values * @return {@code this} for use in a chained invocation */ public JCameraRotationCoefficientsMutable from(JCameraRotationCoefficientsType instance) { Objects.requireNonNull(instance, "instance"); setHorizontal(instance.horizontal()); setVertical(instance.vertical()); return this; }