View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.example.loanbroker.model;
8   
9   import java.io.Serializable;
10  
11  /**
12   * <code>LoanQuote</code> is a loan quote from a bank
13   */
14  
15  public class LoanQuote implements Serializable
16  {
17      /**
18       * Serial version
19       */
20      private static final long serialVersionUID = -8432932027217141564L;
21  
22      private String bankName;
23      private double interestRate = 0;
24  
25      public LoanQuote()
26      {
27          super();
28      }
29  
30      public String getBankName()
31      {
32          return bankName;
33      }
34  
35      public void setBankName(String bankName)
36      {
37          this.bankName = bankName;
38      }
39  
40      public double getInterestRate()
41      {
42          return interestRate;
43      }
44  
45      public void setInterestRate(double interestRate)
46      {
47          this.interestRate = interestRate;
48      }
49  
50      public String toString()
51      {
52          return bankName + ", rate: " + interestRate;
53      }
54  }