io.sphere.sdk.models.AssetDraftBuilder Maven / Gradle / Ivy
package io.sphere.sdk.models;
import io.sphere.sdk.types.CustomFieldsDraft;
import javax.annotation.Nullable;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import static java.util.Arrays.asList;
public final class AssetDraftBuilder extends AssetDraftBuilderBase {
AssetDraftBuilder(@Nullable final CustomFieldsDraft custom, @Nullable final LocalizedString description,@Nullable final String key,
final LocalizedString name, final List sources, @Nullable final Set tags) {
super(custom, description, key, name, sources, tags);
}
public AssetDraftBuilder tags(final String tag, final String ... moreTags) {
final HashSet tags = new HashSet<>();
tags.add(tag);
tags.addAll(asList(moreTags));
return tags(tags);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy