KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > properties > Pair


1 /**
2  *
3  */

4 package com.sslexplorer.properties;
5
6 public class Pair {
7     Object JavaDoc value;
8
9     String JavaDoc label;
10
11     public Pair(Object JavaDoc value, String JavaDoc label) {
12         this.value = value;
13         this.label = label;
14     }
15
16     public Object JavaDoc getValue() {
17         return value;
18     }
19
20     public String JavaDoc getLabel() {
21         return label;
22     }
23
24     public void setValue(Object JavaDoc value) {
25         this.value = value;
26     }
27
28     public String JavaDoc toString() {
29         return "pair[label=" + label + ",value=" + value + "]";
30     }
31 }
Popular Tags