Class KeyValue
- java.lang.Object
-
- de.hybris.platform.integrationservices.integrationkey.KeyValue
-
public class KeyValue extends java.lang.ObjectA value object encapsulating item key value regardless of whether the item has a simple or a composite key.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyValue.BuilderA builder for theKeyValue
-
Constructor Summary
Constructors Constructor Description KeyValue()Instantiates an empty key value.KeyValue(java.util.Collection<KeyAttributeValue> values)Instantiates a key value consisting of the provided attribute values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Collection<KeyAttributeValue>getKeyAttributeValues()Retrieves values this key consists of.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
KeyValue
public KeyValue()
Instantiates an empty key value.
-
KeyValue
public KeyValue(java.util.Collection<KeyAttributeValue> values)
Instantiates a key value consisting of the provided attribute values- Parameters:
values- attribute values for this key
-
-
Method Detail
-
getKeyAttributeValues
public java.util.Collection<KeyAttributeValue> getKeyAttributeValues()
Retrieves values this key consists of.- Returns:
- a collection of values of all key attributes comprising this key value or an empty collection, if the item does not have a key.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-