mirror of https://github.com/apache/activemq.git
added toString()
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@515609 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
95b34d5f2b
commit
300a5b23cb
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue