MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / equalsViaJ2J

Method equalsViaJ2J

src/main/java/xmpp/JidUtils.java:16–25  ·  view source on GitHub ↗
(Jid jid, String jid_str)

Source from the content-addressed store, hash-verified

14public class JidUtils {
15
16 public static boolean equalsViaJ2J(Jid jid, String jid_str) {
17 Jid j = new Jid(jid_str);
18 String node = jid.getNode();
19 String jnode = j.getNode();
20 String jserver = j.getServer();
21
22 return jid.equals(j, false)
23 || (node.equals(jnode + "%" + jserver))
24 || (node.equals(jnode + "\\40" + jserver));
25 }
26
27 public static boolean equalsServerViaJ2J(Jid jid, String jserver) {
28 String node = jid.getNode();

Callers 3

isJuickContactMethod · 0.95
isJuBoContactMethod · 0.95

Calls 3

getNodeMethod · 0.95
getServerMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected