1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-23 02:58:00 +01:00

Improved #toString()

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@4296 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2006-07-07 15:05:00 +00:00 committed by gato
parent 6cb31089f1
commit 97b80ac8da
3 changed files with 11 additions and 0 deletions

View file

@ -68,4 +68,8 @@ public class FromMatchesFilter implements PacketFilter {
return address.equals(packet.getFrom().toLowerCase());
}
}
public String toString() {
return "FromMatchesFilter: " + address;
}
}

View file

@ -46,4 +46,8 @@ public class PacketIDFilter implements PacketFilter {
public boolean accept(Packet packet) {
return packetID.equals(packet.getPacketID());
}
public String toString() {
return "PacketIDFilter by id: " + packetID;
}
}

View file

@ -55,4 +55,7 @@ public class PacketTypeFilter implements PacketFilter {
return packetType.isInstance(packet);
}
public String toString() {
return "PacketTypeFilter: " + packetType.getName();
}
}