KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > samples > loanbroker > LoanQuote


1 /*
2  * $Id: LoanQuote.java 3982 2006-11-22 14:28:01Z lajos $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.samples.loanbroker;
12
13 import java.io.Serializable JavaDoc;
14
15 /**
16  * <code>LoanQuote</code> is a loan quote from a bank
17  */

18
19 public class LoanQuote implements Serializable JavaDoc
20 {
21     /**
22      * Serial version
23      */

24     private static final long serialVersionUID = -3162909684628095778L;
25
26     private String JavaDoc bankName;
27     private double interestRate = 0;
28
29     public String JavaDoc getBankName()
30     {
31         return bankName;
32     }
33
34     public void setBankName(String JavaDoc bankName)
35     {
36         this.bankName = bankName;
37     }
38
39     public double getInterestRate()
40     {
41         return interestRate;
42     }
43
44     public void setInterestRate(double interestRate)
45     {
46         this.interestRate = interestRate;
47     }
48
49     public String JavaDoc toString()
50     {
51         return bankName + ", rate: " + interestRate;
52     }
53 }
54
Popular Tags