Introduced practical toString method

This commit is contained in:
andrea
2013-08-28 17:56:06 +02:00
parent 53cb3dda73
commit 54af962ea3
@@ -85,4 +85,9 @@ public class Subscription implements Serializable {
boolean match(String topic) {
return this.topic.equals(topic);
}
@Override
public String toString() {
return String.format("[t:%s, cliID: %s, qos: %s]", this.topic, this.clientId, this.requestedQos);
}
}