Class ItemVariationMapping


  • public class ItemVariationMapping
    extends java.lang.Object
    Converts variation items to it's base item counterparts
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Collection<java.lang.Integer> getVariations​(int itemId)
      Get item ids for provided variation item id.
      static int map​(int itemId)
      Get base item id for provided variation item id.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 java.util.Collection<java.lang.Integer> getVariations​(int itemId)
        Get item ids for provided variation item id.
        Parameters:
        itemId - the item id
        Returns:
        the item ids