Class CustomerCapability.BuyItem

  • Enclosing class:
    CustomerCapability

    public static class CustomerCapability.BuyItem
    extends java.lang.Object
    Goal to buy an item.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String name
      The item name.
      double price
      The price.
      IShopService shop
      The shop.
    • Constructor Summary

      Constructors 
      Constructor Description
      BuyItem​(java.lang.String name, IShopService shop, double price)
      Create a buy item goal.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • name

        public java.lang.String name
        The item name.
      • price

        public double price
        The price.
    • Constructor Detail

      • BuyItem

        public BuyItem​(java.lang.String name,
                       IShopService shop,
                       double price)
        Create a buy item goal.