public final class InventoryEntryIdentifier
extends java.lang.Object
InventoryEntry for the sync which is a
combination of both the SKU of the inventory entry and the supply channel if of this inventory entry.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getInventoryEntryChannelId() |
java.lang.String |
getInventoryEntrySku() |
int |
hashCode() |
static InventoryEntryIdentifier |
of(io.sphere.sdk.inventory.InventoryEntry inventoryEntry)
Builds an
InventoryEntryIdentifier instance given an InventoryEntry using it's sku and
supply channel id. |
static InventoryEntryIdentifier |
of(io.sphere.sdk.inventory.InventoryEntryDraft inventoryEntryDraft)
Builds an
InventoryEntryIdentifier instance given an InventoryEntryDraft using it's sku and
supply channel id. |
static InventoryEntryIdentifier |
of(java.lang.String inventoryEntrySku,
java.lang.String inventoryEntryChannelId)
Builds an
InventoryEntryIdentifier instance given an sku and supply channel id. |
public static InventoryEntryIdentifier of(@Nonnull io.sphere.sdk.inventory.InventoryEntryDraft inventoryEntryDraft)
InventoryEntryIdentifier instance given an InventoryEntryDraft using it's sku and
supply channel id.inventoryEntryDraft - the draft to take the sku and channel id value from.InventoryEntryIdentifier for the given draft.public static InventoryEntryIdentifier of(@Nonnull io.sphere.sdk.inventory.InventoryEntry inventoryEntry)
InventoryEntryIdentifier instance given an InventoryEntry using it's sku and
supply channel id.inventoryEntry - the entry to take the sku and channel id value from.InventoryEntryIdentifier for the given entry.public static InventoryEntryIdentifier of(@Nonnull java.lang.String inventoryEntrySku, @Nullable java.lang.String inventoryEntryChannelId)
InventoryEntryIdentifier instance given an sku and supply channel id.inventoryEntrySku - the SKU of the inventory entry.inventoryEntryChannelId - the channel id of the inventory entry.InventoryEntryIdentifier for the given entry.public java.lang.String getInventoryEntryChannelId()
public java.lang.String getInventoryEntrySku()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object