@Override public Updater<Update, MetricType> update() { return new Updater<>((u) -> new MetricType(u.getName(), getPath(), getIdentityHash(), getContentHash(), getSyncHash(), valueOrDefault(u.unit, this.unit), metricDataType, u.getProperties(), valueOrDefault(u.getCollectionInterval(), collectionInterval))); }