mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-30 10:12:06 +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:
parent
6cb31089f1
commit
97b80ac8da
3 changed files with 11 additions and 0 deletions
|
@ -68,4 +68,8 @@ public class FromMatchesFilter implements PacketFilter {
|
|||
return address.equals(packet.getFrom().toLowerCase());
|
||||
}
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "FromMatchesFilter: " + address;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,4 +55,7 @@ public class PacketTypeFilter implements PacketFilter {
|
|||
return packetType.isInstance(packet);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "PacketTypeFilter: " + packetType.getName();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue