Class ShoppingCart.ShoppingCartItemGroup

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    ShoppingCart

    public static class ShoppingCart.ShoppingCartItemGroup
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • ShoppingCartItemGroup

        protected ShoppingCartItemGroup​(long groupNumber,
                                        java.lang.String groupName)
      • ShoppingCartItemGroup

        protected ShoppingCartItemGroup​(long groupNumber,
                                        java.lang.String groupName,
                                        ShoppingCart.ShoppingCartItemGroup parentGroup)
        Note that to avoid foreign key issues when the groups are created a parentGroup should have a lower number than the child group.
    • Method Detail

      • getGroupNumber

        public java.lang.String getGroupNumber()
      • getGroupName

        public java.lang.String getGroupName()
      • setGroupName

        public void setGroupName​(java.lang.String str)
      • inheritParentsParent

        public void inheritParentsParent()
      • 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