Class InventoryEntryIdentifier
- java.lang.Object
 - 
- com.commercetools.sync.inventories.helpers.InventoryEntryIdentifier
 
 
- 
public final class InventoryEntryIdentifier extends java.lang.ObjectThis class provides as a container of the unique identifier of anInventoryEntryfor the sync which is a combination of the SKU and the supply channel id of this inventory entry. 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.lang.StringgetSku()java.lang.StringgetSupplyChannelId()inthashCode()static InventoryEntryIdentifierof(io.sphere.sdk.inventory.InventoryEntry inventoryEntry)Builds anInventoryEntryIdentifierinstance given anInventoryEntryusing it's sku and supply channel id.static InventoryEntryIdentifierof(io.sphere.sdk.inventory.InventoryEntryDraft inventoryEntryDraft)Builds anInventoryEntryIdentifierinstance given anInventoryEntryDraftusing its sku and supply channel id.java.lang.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
of
public static InventoryEntryIdentifier of(@Nonnull io.sphere.sdk.inventory.InventoryEntryDraft inventoryEntryDraft)
Builds anInventoryEntryIdentifierinstance given anInventoryEntryDraftusing its sku and supply channel id.- Parameters:
 inventoryEntryDraft- the draft to take the sku and supply channel id value from.- Returns:
 - an instance of 
InventoryEntryIdentifierfor the given draft. 
 
- 
of
public static InventoryEntryIdentifier of(@Nonnull io.sphere.sdk.inventory.InventoryEntry inventoryEntry)
Builds anInventoryEntryIdentifierinstance given anInventoryEntryusing it's sku and supply channel id.- Parameters:
 inventoryEntry- the entry to take the sku and channel id value from.- Returns:
 - an instance of 
InventoryEntryIdentifierfor the given entry. 
 
- 
getSku
public java.lang.String getSku()
 
- 
getSupplyChannelId
public java.lang.String getSupplyChannelId()
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object other)
- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
 - 
 
 -