com.commercetools.sync.commons.helpers.CategoryResourceIdentifierPair Maven / Gradle / Ivy
package com.commercetools.sync.commons.helpers;
import com.commercetools.api.models.category.CategoryResourceIdentifier;
import com.commercetools.api.models.product.CategoryOrderHints;
import java.util.List;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/**
* Container for a {@link List} of {@link CategoryResourceIdentifier} and a {@link
* CategoryOrderHints}.
*/
public final class CategoryResourceIdentifierPair {
private List categoryResourceIdentifiers;
private CategoryOrderHints categoryOrderHints;
private CategoryResourceIdentifierPair(
@Nonnull final List categoryResourceIdentifiers,
@Nullable final CategoryOrderHints categoryOrderHints) {
this.categoryResourceIdentifiers = categoryResourceIdentifiers;
this.categoryOrderHints = categoryOrderHints;
}
public static CategoryResourceIdentifierPair of(
@Nonnull final List categoryResourceIdentifiers,
@Nullable final CategoryOrderHints categoryOrderHints) {
return new CategoryResourceIdentifierPair(categoryResourceIdentifiers, categoryOrderHints);
}
public List getCategoryResourceIdentifiers() {
return categoryResourceIdentifiers;
}
public CategoryOrderHints getCategoryOrderHints() {
return categoryOrderHints;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy