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 key of
this inventory entry.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getInventoryEntryChannelKey() |
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
its sku and supply channel key. |
static InventoryEntryIdentifier |
of(java.lang.String inventoryEntrySku,
java.lang.String inventoryEntryChannelKey)
Builds an
InventoryEntryIdentifier instance given an sku and supply channel id. |
java.lang.String |
toString() |
public static InventoryEntryIdentifier of(@Nonnull io.sphere.sdk.inventory.InventoryEntryDraft inventoryEntryDraft)
InventoryEntryIdentifier instance given an InventoryEntryDraft using
its sku and supply channel key.inventoryEntryDraft - the draft to take the sku and channel key 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 inventoryEntryChannelKey)
InventoryEntryIdentifier instance given an sku and supply channel id.inventoryEntrySku - the SKU of the inventory entry.inventoryEntryChannelKey - the channel key of the inventory entry.InventoryEntryIdentifier for the given entry.public java.lang.String getInventoryEntrySku()
public java.lang.String getInventoryEntryChannelKey()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object