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

Method equals

src/main/java/xmpp/Jid.java:75–89  ·  view source on GitHub ↗

Compares two Jids @param j @param compareResource @return

(Jid j, boolean compareResource)

Source from the content-addressed store, hash-verified

73 * @return
74 */
75 public boolean equals(Jid j, boolean compareResource) {
76 if (j == null) {
77 return false;
78 }
79
80 if (!getBare().equals(j.getBare())) {
81 return false;
82 }
83
84 if (!compareResource) {
85 return true;
86 }
87
88 return (resource.equals(j.resource));
89 }
90
91
92 public String toString() {

Callers 15

belongsToTransportMethod · 0.95
cmdOkMethod · 0.95
onNewIntentMethod · 0.45
startNotifyMethod · 0.45
blockArrivedMethod · 0.45
switchTypeMethod · 0.45
blockArrivedMethod · 0.45
PrivacyItemMethod · 0.45
blockArrivedMethod · 0.45
getPresenceMethod · 0.45
blockArrivedMethod · 0.45
browseMethod · 0.45

Calls 1

getBareMethod · 0.95

Tested by

no test coverage detected