public final class SimpleKey extends java.lang.Object implements AttributeKey
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key |
private int |
objectId |
Constructor and Description |
---|
SimpleKey(int objectId,
java.lang.String key) |
Modifier and Type | Method and Description |
---|---|
AttributeKey |
createSubKey(int subObjectId) |
boolean |
equals(java.lang.Object obj) |
int |
getCompoundObjectId() |
java.lang.String |
getKeyName() |
int |
getObjectId() |
int |
hashCode() |
boolean |
isCompound() |
java.lang.String |
toString() |
SimpleKey(int objectId, java.lang.String key)
objectId
- the productid or default variationidkey
- public java.lang.String getKeyName()
getKeyName
in interface AttributeKey
public int getObjectId()
getObjectId
in interface AttributeKey
public boolean isCompound()
isCompound
in interface AttributeKey
public int getCompoundObjectId()
getCompoundObjectId
in interface AttributeKey
public AttributeKey createSubKey(int subObjectId)
createSubKey
in interface AttributeKey
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object