java.lang.Object
de.hybris.platform.integrationservices.integrationkey.KeyValue

public class KeyValue extends Object
A value object encapsulating item key value regardless of whether the item has a simple or a composite key.
  • Constructor Details

    • KeyValue

      public KeyValue()
      Instantiates an empty key value.
    • KeyValue

      public KeyValue(Collection<KeyAttributeValue> values)
      Instantiates a key value consisting of the provided attribute values
      Parameters:
      values - attribute values for this key
  • Method Details

    • getKeyAttributeValues

      public 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object