/** * Sets the method used to write to the medium. * * @param newValues the new medium formats. */ public void setMediumFormats(final Collection<? extends MediumFormat> newValues) { mediumFormats = writeCollection(newValues, mediumFormats, MediumFormat.class); }
/** * Sets the method used to write to the medium. * * @param newValues the new medium formats. */ public void setMediumFormats(final Collection<? extends MediumFormat> newValues) { mediumFormats = writeCollection(newValues, mediumFormats, MediumFormat.class); }
/** * @deprecated As of ISO 19115:2014, replaced by {@link #setDensity(Double)}. * * @param newValues the new densities. */ @Deprecated public void setDensities(final Collection<? extends Double> newValues) { densities = writeCollection(newValues, densities, Double.class); }
/** * @deprecated As of ISO 19115:2014, replaced by {@link #setDensity(Double)}. * * @param newValues the new densities. */ @Deprecated public void setDensities(final Collection<? extends Double> newValues) { densities = writeCollection(newValues, densities, Double.class); }
/** * Sets density at which the data is recorded. * The number shall be greater than zero. * * @param newValue the new density. * @throws IllegalArgumentException if the given value is NaN, zero or negative. * * @since 0.5 */ public void setDensity(final Double newValue) { checkWritePermission(); if (ensurePositive(DefaultMedium.class, "density", true, newValue)) { densities = writeCollection(LegacyPropertyAdapter.asCollection(newValue), densities, Double.class); } }
/** * Sets density at which the data is recorded. * The number shall be greater than zero. * * @param newValue the new density. * @throws IllegalArgumentException if the given value is NaN, zero or negative. * * @since 0.5 */ public void setDensity(final Double newValue) { checkWritePermission(valueIfDefined(densities)); if (ensurePositive(DefaultMedium.class, "density", true, newValue)) { densities = writeCollection(LegacyPropertyAdapter.asCollection(newValue), densities, Double.class); } }