/** * Construct a modifiable instance of {@code SMFFormatVersionType}. * @param major The value for the {@link SMFFormatVersionType#major() major} attribute * @param minor The value for the {@link SMFFormatVersionType#minor() minor} attribute * @return A new modifiable instance */ public static SMFFormatVersionMutable create(int major, int minor) { return new SMFFormatVersionMutable() .setMajor(major) .setMinor(minor); }
/** * Construct a modifiable instance of {@code SMFFormatVersionType}. * @param major The value for the {@link SMFFormatVersionType#major() major} attribute * @param minor The value for the {@link SMFFormatVersionType#minor() minor} attribute * @return A new modifiable instance */ public static SMFFormatVersionMutable create(int major, int minor) { return new SMFFormatVersionMutable() .setMajor(major) .setMinor(minor); }
/** * Fill this modifiable instance with attribute values from the provided {@link SMFFormatVersionType} 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 SMFFormatVersionMutable from(SMFFormatVersionType instance) { Objects.requireNonNull(instance, "instance"); setMajor(instance.major()); setMinor(instance.minor()); return this; }
/** * Fill this modifiable instance with attribute values from the provided {@link SMFFormatVersionType} 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 SMFFormatVersionMutable from(SMFFormatVersionType instance) { Objects.requireNonNull(instance, "instance"); setMajor(instance.major()); setMinor(instance.minor()); return this; }