/** * Returns the date or range of dates on which a data quality measure was applied. * The collection size is 1 for a single date, or 2 for a range. * Returns an empty collection if this information is not available. * * @return date or range of dates on which a data quality measure was applied. */ @Override @XmlElement(name = "dateTime") @SuppressWarnings("ReturnOfCollectionOrArrayField") public Collection<Date> getDates() { if (Semaphores.query(Semaphores.NULL_COLLECTION)) { return isNullOrEmpty(dates) ? null : dates; } if (dates == null) { dates = new Dates(); } return dates; }
/** * Returns the date or range of dates on which a data quality measure was applied. * The collection size is 1 for a single date, or 2 for a range. * Returns an empty collection if this information is not available. * * @return date or range of dates on which a data quality measure was applied. */ @Override @XmlElement(name = "dateTime", namespace = Namespaces.DQC) @SuppressWarnings("ReturnOfCollectionOrArrayField") public Collection<Date> getDates() { if (Semaphores.query(Semaphores.NULL_COLLECTION)) { return isNullOrEmpty(dates) ? null : dates; } if (dates == null) { dates = new Dates(); } return dates; }
/** * Implementation of {@link #setDates(Collection)}. */ private void writeDates(final Collection<? extends Date> newValues) { if (isNullOrEmpty(newValues)) { dates = null; } else { if (dates == null) { dates = new Dates(); } dates.clear(); dates.addAll(newValues); } }
/** * Implementation of {@link #setDates(Collection)}. */ private void writeDates(final Collection<? extends Date> newValues) { if (isNullOrEmpty(newValues)) { dates = null; } else { if (dates == null) { dates = new Dates(); } dates.clear(); dates.addAll(newValues); } }