Class KBKeyImpl

  • All Implemented Interfaces:
    KBKey

    public class KBKeyImpl
    extends java.lang.Object
    implements KBKey
    Immutable Object. Default implementation of KBKey.
    • Constructor Summary

      Constructors 
      Constructor Description
      KBKeyImpl​(java.lang.String productCode)
      Minimal constructor, will use the actual Date for the KB key.
      KBKeyImpl​(java.lang.String productCode, java.lang.String kbName, java.lang.String kbLogsys, java.lang.String kbVersion)
      Convenience constructor, will use the actual Date for the KB key.
      KBKeyImpl​(java.lang.String productCode, java.lang.String kbName, java.lang.String kbLogsys, java.lang.String kbVersion, java.util.Date date)
      Constructor that allows to set all fields.
    • Constructor Detail

      • KBKeyImpl

        public KBKeyImpl​(java.lang.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​(java.lang.String productCode,
                         java.lang.String kbName,
                         java.lang.String kbLogsys,
                         java.lang.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​(java.lang.String productCode,
                         java.lang.String kbName,
                         java.lang.String kbLogsys,
                         java.lang.String kbVersion,
                         java.util.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 Detail

      • getProductCode

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

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

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

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

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

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

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object