1 |
/* |
/* |
2 |
* $Id$ |
* Parameter.java |
3 |
* Copyright (C) 2003 The Free Software Foundation |
* Copyright (C) 2003 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 |
* An ESMTP parameter. |
* An ESMTP parameter. |
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 Parameter |
public final class Parameter |
47 |
{ |
{ |
54 |
* @param key the key |
* @param key the key |
55 |
* @param value the value |
* @param value the value |
56 |
*/ |
*/ |
57 |
public Parameter (String key, String value) |
public Parameter(String key, String value) |
58 |
{ |
{ |
59 |
this.key = key; |
this.key = key; |
60 |
this.value = value; |
this.value = value; |
63 |
/** |
/** |
64 |
* Returns the key. |
* Returns the key. |
65 |
*/ |
*/ |
66 |
public String getKey () |
public String getKey() |
67 |
{ |
{ |
68 |
return key; |
return key; |
69 |
} |
} |
71 |
/** |
/** |
72 |
* Returns the value. |
* Returns the value. |
73 |
*/ |
*/ |
74 |
public String getValue () |
public String getValue() |
75 |
{ |
{ |
76 |
return value; |
return value; |
77 |
} |
} |
79 |
/** |
/** |
80 |
* String form. |
* String form. |
81 |
*/ |
*/ |
82 |
public String toString () |
public String toString() |
83 |
{ |
{ |
84 |
if (value == null) |
if (value == null) |
85 |
{ |
{ |
92 |
} |
} |
93 |
|
|
94 |
} |
} |
95 |
|
|