Skip to content

Commit 1c4729b

Browse files
committed
Better Javadoc for NameValuePair.
1 parent fe2679e commit 1c4729b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

httpcore5/src/main/java/org/apache/hc/core5/http/NameValuePair.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,24 @@
2828
package org.apache.hc.core5.http;
2929

3030
/**
31-
* A name / value pair parameter used as an element of HTTP messages.
31+
* A name-value pair parameter used as an element of HTTP messages.
3232
*
3333
* @since 4.0
3434
*/
3535
public interface NameValuePair {
3636

37+
/**
38+
* Gets the name of this pair.
39+
*
40+
* @return the name of this pair, never {@code null}.
41+
*/
3742
String getName();
3843

44+
/**
45+
* Gets the value of this pair.
46+
*
47+
* @return the value of this pair, may be {@code null}.
48+
*/
3949
String getValue();
4050

4151
}

0 commit comments

Comments
 (0)