Permalink
Browse files

[XNIO-107] Add a toString for the property key and value.

  • Loading branch information...
1 parent 4fd7634 commit 79b31f604ddf50e905ddef055a2721f3e7c7a93f @darranl darranl committed with May 22, 2012
Showing with 11 additions and 1 deletion.
  1. +11 −1 api/src/main/java/org/xnio/Property.java
@@ -64,10 +64,20 @@ public String getKey() {
public String getValue() {
return value;
}
+
+ /**
+ * Get the {@link String} representation of this property.
+ *
+ * @return the {@link String} representation of this property.
+ */
+ @Override
+ public String toString() {
+ return "(" + key + "=>" + value + ")";
+ }
/**
* Get the hash code for this Property.
- *
+ *
* @return the hash code.
*/
@Override

0 comments on commit 79b31f6

Please sign in to comment.