KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > stests > appli > OrderID


1 package org.objectweb.jonas.stests.appli;
2
3
4 public class OrderID implements java.io.Serializable JavaDoc {
5     public String JavaDoc ivWarehouseID;
6     public int ivDistrictID;
7   public float ivOrderID;
8     
9   public OrderID() {}
10
11   public OrderID(String JavaDoc wid, int did, float oid) {
12     ivWarehouseID = wid;
13     ivDistrictID = did;
14     ivOrderID = oid;
15   }
16     
17     public OrderID(String JavaDoc wid, String JavaDoc did, String JavaDoc oid) {
18         ivWarehouseID = wid;
19         ivDistrictID = Integer.parseInt(did);
20         ivOrderID = Float.valueOf(oid).floatValue();
21     }
22         
23
24     public String JavaDoc toString(){
25     return ivWarehouseID+ivDistrictID+ivOrderID;
26     }
27 }
28
Popular Tags