public final class InventoryEntryIdentifier
extends java.lang.Object
InventoryEntry for the
sync which is a combination of the SKU and the supply channel id of this inventory entry.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getSku() |
java.lang.String |
getSupplyChannelId() |
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 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 id.inventoryEntryDraft - the draft to take the sku and supply 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 java.lang.String getSku()
public java.lang.String getSupplyChannelId()
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