From dbcaeecb4fac72b3b31a4551628c7f038ee352cc Mon Sep 17 00:00:00 2001
From: Stephen Colebourne
Date: Tue, 12 Apr 2011 14:13:25 +0000
Subject: [PATCH] Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1091420 13f79535-47bb-0310-9956-ffa450edef68
---
.../java/org/apache/commons/lang3/Pair.java | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/src/main/java/org/apache/commons/lang3/Pair.java b/src/main/java/org/apache/commons/lang3/Pair.java
index 5747e356a..ce005de42 100644
--- a/src/main/java/org/apache/commons/lang3/Pair.java
+++ b/src/main/java/org/apache/commons/lang3/Pair.java
@@ -43,7 +43,9 @@ public abstract class Pair implements Map.Entry, ComparableReturns a String representation of the Pair in the form: (L,R).
*
- * @return a string for this object
+ * @return a string describing this object, not null
*/
@Override
public String toString() {
@@ -161,19 +163,21 @@ public String toString() {
}
/**
- * Returns a String representation in the given format. The format is in the {@link Formatter} syntax. There are three arguments
- * available:
+ * Returns a String representation in the given format.
+ *
+ * The format specified uses the syntax from {@link Formatter}.
+ * There are three arguments available:
*
* - The simple class name
* - The left object
* - The right object
*
*
- * @param format
- * a {@link Formatter} String.
- * @return a string for this object
+ * @param format the format suitable for use with {@code Formatter}, not null
+ * @return a string describing for this object, not null
*/
public String toString(String format) {
return String.format(format, getClass().getSimpleName(), getLeft(), getRight());
}
+
}