split garbage collector into three files...
[IRC.git] / Robust / src / Util / Tuple.java
1 import java.util.ArrayList;\r
2 \r
3 public class Tuple implements Tuples{\r
4         ArrayList o;\r
5 \r
6         public Tuple(){\r
7                 o = new ArrayList();\r
8         }\r
9 \r
10         public Tuple(ArrayList o){\r
11                 this.o = o;\r
12         }\r
13 \r
14         public Object get(int i){\r
15                 return o.get(i);\r
16         }\r
17 \r
18         public void remove(int i){\r
19                 o.remove(i);\r
20         }\r
21 \r
22         public ArrayList getList(){\r
23                 return o;\r
24         }\r
25 \r
26         public int size(){\r
27                 return o.size();\r
28         }\r
29 \r
30         public int hashCode(){\r
31                 return o.hashCode();\r
32         }\r
33 \r
34         public String toString(){\r
35                 String tmp="";\r
36                 for(int i = 0; i < o.size(); i++){\r
37                         tmp += o.get(i)+" ";\r
38                 }\r
39                 return tmp;\r
40         }\r
41 }\r