java.lang.Object
de.hybris.platform.sap.productconfig.runtime.interf.impl.KBKeyImpl
All Implemented Interfaces:
KBKey, Serializable

public class KBKeyImpl extends Object implements KBKey
Immutable Object. Default implementation of KBKey.
See Also:
  • Constructor Details

    • KBKeyImpl

      public KBKeyImpl(String productCode)
      Minimal constructor, will use the actual Date for the KB key. Other fields will be null.
      Parameters:
      productCode - code of the product this KBKey represents
    • KBKeyImpl

      public KBKeyImpl(String productCode, String kbName, String kbLogsys, String kbVersion)
      Convenience constructor, will use the actual Date for the KB key.
      Parameters:
      productCode - code of the product this KBKey represents
      kbName - name of KB object
      kbLogsys - name of the KN logical system
      kbVersion - version of the KB object
    • KBKeyImpl

      public KBKeyImpl(String productCode, String kbName, String kbLogsys, String kbVersion, Date date)
      Constructor that allows to set all fields.
      Parameters:
      productCode - code of the product this KBKey represents
      kbName - name of KB object
      kbLogsys - name of the KN logical system
      kbVersion - version of the KB object
      date - KB needs to be valid at this date to match this KBKey
  • Method Details

    • getProductCode

      public String getProductCode()
      Specified by:
      getProductCode in interface KBKey
      Returns:
      the product code
    • getKbName

      public String getKbName()
      Specified by:
      getKbName in interface KBKey
      Returns:
      the knowledge base name
    • getKbLogsys

      public String getKbLogsys()
      Specified by:
      getKbLogsys in interface KBKey
      Returns:
      the knowledge base logical system
    • getKbVersion

      public String getKbVersion()
      Specified by:
      getKbVersion in interface KBKey
      Returns:
      the knowledge base version
    • getDate

      public Date getDate()
      Specified by:
      getDate in interface KBKey
      Returns:
      the date
    • toString

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

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object