Class ItemVariationMapping


  • public class ItemVariationMapping
    extends Object
    Converts variation items to it's base item counterparts
    • Constructor Detail

      • ItemVariationMapping

        public ItemVariationMapping()
    • Method Detail

      • map

        public static int map​(int itemId)
        Get base item id for provided variation item id.
        Parameters:
        itemId - the item id
        Returns:
        the base item id
      • getVariations

        public static Collection<Integer> getVariations​(int itemId)
        Get item ids for provided variation item id.
        Parameters:
        itemId - the item id
        Returns:
        the item ids