Package com.bookstore.domain.model

Examples of com.bookstore.domain.model.Line


    this.paymentReceived = paymentReceived;
  }
 
  public void addBook(Book book, int quantity) {
    if (orderState.equals("Open")) {
      getLines().add(new Line(book, quantity));
    } else {
      throw new IllegalStateException("Can only add books in Open state.");
    }
  }
View Full Code Here


    this.paymentReceived = paymentReceived;
  }
 
  public void addBook(Book book, int quantity) {
    if (orderState.equals("Open")) {
      lines.add(new Line(book, quantity));
    } else {
      throw new IllegalStateException("Can only add books in Open state.");
    }
  }
View Full Code Here

TOP

Related Classes of com.bookstore.domain.model.Line

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.