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

Method addRule

src/main/java/PrivacyLists/PrivacyList.java:31–40  ·  view source on GitHub ↗
(PrivacyItem rule)

Source from the content-addressed store, hash-verified

29 }
30
31 public void addRule(PrivacyItem rule) {
32 int index = 0;
33 while (index < rules.size()) {
34 if (rule.order <= ((PrivacyItem) rules.elementAt(index)).order) {
35 break;
36 }
37 index++;
38 }
39 rules.insertElementAt(rule, index);
40 }
41
42 public static void privacyListRq(boolean set, JabberDataBlock child, String id) {
43 JabberDataBlock pl = new Iq(null, (set) ? Iq.TYPE_SET : Iq.TYPE_GET, id);

Callers 3

setMethod · 0.80
blockArrivedMethod · 0.80
cmdOkMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected