com.ibm.commerce.price.utils

Class DynamicKitComponent

  • java.lang.Object
    • com.ibm.commerce.price.utils.DynamicKitComponent


  • public class DynamicKitComponent
    extends java.lang.Object
    A utility aggregate used to simplify the representation of components within a dynamic kit. Note that this aggregate does not override the Object.equals() and Object.hashCode() methods. This ensures that no two distinct instances will be considered equal, even if they contain the same catalog entry and quantity. Ensuring this distinction allows for the same catalog entry to appear more than once in a collection used to represent the components in a dynamic kit. Although rare, this situation may arise in some Dynamic Kits.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DynamicKitComponent(java.lang.Long catEntryId, java.lang.Double quantity)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Long getCatEntryId()
      Returns the catalog entry ID of the component.
      java.lang.Double getQuantity()
      Returns the quantity of the catalog entry.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DynamicKitComponent

        public DynamicKitComponent(java.lang.Long catEntryId,
                                   java.lang.Double quantity)
        Constructor. Creates a new instance with the given catalog entry and quantity.
        Parameters:
        catEntryId - The catalog entry of the component in the dynamic kit.
        quantity - The quantity of the catalog entry.
    • Method Detail

      • getCatEntryId

        public java.lang.Long getCatEntryId()
        Returns the catalog entry ID of the component.
        Returns:
        The catalog entry ID of the component.
      • getQuantity

        public java.lang.Double getQuantity()
        Returns the quantity of the catalog entry.
        Returns:
        The quantity of the catalog entry.