Class InventoryEntryIdentifier


  • public final class InventoryEntryIdentifier
    extends java.lang.Object
    This class provides as a container of the unique identifier of an InventoryEntry for the sync which is a combination of the SKU and the supply channel id of this inventory entry.
    • Method Detail

      • of

        public static InventoryEntryIdentifier of​(@Nonnull
                                                  com.commercetools.api.models.inventory.InventoryEntryDraft inventoryEntryDraft)
        Builds an InventoryEntryIdentifier instance given an InventoryEntryDraft using its sku and supply channel id.
        Parameters:
        inventoryEntryDraft - the draft to take the sku and supply channel id value from.
        Returns:
        an instance of InventoryEntryIdentifier for the given draft.
      • of

        public static InventoryEntryIdentifier of​(@Nonnull
                                                  com.commercetools.api.models.inventory.InventoryEntry inventoryEntry)
        Builds an InventoryEntryIdentifier instance given an InventoryEntry using it's sku and supply channel id.
        Parameters:
        inventoryEntry - the entry to take the sku and channel id value from.
        Returns:
        an instance of InventoryEntryIdentifier for the given entry.
      • getSku

        public java.lang.String getSku()
      • getSupplyChannelId

        public java.lang.String getSupplyChannelId()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object