Added a useful toString().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1139 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: KeyValue.java,v 1.1 2003/02/27 00:43:32 mdb Exp $
|
||||
// $Id: KeyValue.java,v 1.2 2003/05/25 01:49:20 mdb Exp $
|
||||
|
||||
package com.samskivert.util;
|
||||
|
||||
@@ -39,6 +39,14 @@ public class KeyValue
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a string representation of this instance.
|
||||
*/
|
||||
public String toString ()
|
||||
{
|
||||
return key + "=" + value;
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public boolean equals (Object other)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user