added toString()

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@515609 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2007-03-07 15:33:50 +00:00
parent 95b34d5f2b
commit 300a5b23cb
1 changed files with 11 additions and 0 deletions

View File

@ -113,4 +113,15 @@ public class ContainerKeySet extends ContainerCollectionSupport implements Set{
public void clear(){
container.clear();
}
public String toString() {
String result ="ContainerKeySet[";
IndexItem item = container.getInternalList().getRoot();
while ((item = container.getInternalList().getNextEntry(item)) != null) {
result += container.getKey(item);
result += ",";
}
result +="]";
return result;
}
}