1 |
/* |
/* |
2 |
* $Id$ |
* Pair.java |
3 |
* Copyright (C) 2002 The Free Software Foundation |
* Copyright (C) 2002 The Free Software Foundation |
4 |
* |
* |
5 |
* This file is part of GNU inetlib, a library. |
* This file is part of GNU inetlib, a library. |
42 |
* A pair of strings associated with one another. |
* A pair of strings associated with one another. |
43 |
* |
* |
44 |
* @author <a href='mailto:dog@gnu.org'>Chris Burdess</a> |
* @author <a href='mailto:dog@gnu.org'>Chris Burdess</a> |
|
* @version $Revision$ $Date$ |
|
45 |
*/ |
*/ |
46 |
public final class Pair |
public final class Pair |
47 |
{ |
{ |
49 |
String key; |
String key; |
50 |
String value; |
String value; |
51 |
|
|
52 |
Pair (String key, String value) |
Pair(String key, String value) |
53 |
{ |
{ |
54 |
this.key = key; |
this.key = key; |
55 |
this.value = value; |
this.value = value; |
58 |
/** |
/** |
59 |
* The key. |
* The key. |
60 |
*/ |
*/ |
61 |
public String getKey () |
public String getKey() |
62 |
{ |
{ |
63 |
return key; |
return key; |
64 |
} |
} |
66 |
/** |
/** |
67 |
* The value. |
* The value. |
68 |
*/ |
*/ |
69 |
public String getValue () |
public String getValue() |
70 |
{ |
{ |
71 |
return value; |
return value; |
72 |
} |
} |
73 |
|
|
74 |
} |
} |
75 |
|
|