KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > demo > townsend > service > Product


1 /*
2 @COPYRIGHT@
3 */

4 package demo.townsend.service;
5
6 public class Product {
7
8     private final String JavaDoc id;
9     private final int quantity;
10     private final String JavaDoc name;
11     private final String JavaDoc details;
12     
13     public Product(String JavaDoc id, int quantity, String JavaDoc name, String JavaDoc details) {
14       this.id = id;
15       this.quantity = quantity;
16       this.name = name;
17       this.details = details;
18     }
19     
20     public String JavaDoc getId() {
21       return id;
22     }
23     
24     public int getQuantity() {
25       return quantity;
26     }
27     
28     public String JavaDoc getName() {
29       return name;
30     }
31     
32     public String JavaDoc getDetails() {
33       return details;
34     }
35 }
Popular Tags