com.shopify.model.ShopifyVariantRequestPositionComparator Maven / Gradle / Ivy
package com.shopify.model;
import java.util.Comparator;
public class ShopifyVariantRequestPositionComparator implements Comparator
{
@Override
public int compare(final ShopifyVariantRequest shopifyVariantRequest,
final ShopifyVariantRequest otherShopifyVariantRequest) {
final int position1 = shopifyVariantRequest.getRequest().getPosition();
final int position2 = otherShopifyVariantRequest.getRequest().getPosition();
return position1 - position2;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy