Add a toString() to HashIntMap's entry objects.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@517 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2001-12-16 23:10:15 +00:00
parent 2b69011649
commit 601e1e3b08
@@ -1,5 +1,5 @@
// //
// $Id: HashIntMap.java,v 1.6 2001/11/26 19:34:46 mdb Exp $ // $Id: HashIntMap.java,v 1.7 2001/12/16 23:10:15 mdb Exp $
// //
// samskivert library - useful routines for java programs // samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne // Copyright (C) 2001 Michael Bayne
@@ -378,6 +378,11 @@ public class HashIntMap
{ {
return key ^ ((value == null) ? 0 : value.hashCode()); return key ^ ((value == null) ? 0 : value.hashCode());
} }
public String toString ()
{
return key + "=" + value;
}
} }
private Record[] _buckets; private Record[] _buckets;