MCPcopy Create free account
hub / github.com/BaseXdb/basex / remove

Method remove

basex-core/src/main/java/org/basex/query/util/Flag.java:68–79  ·  view source on GitHub ↗

Removes flags from a flags array. @param flags flags @param remove flags to be removed @return new array

(final Flag[] flags, final Flag... remove)

Source from the content-addressed store, hash-verified

66 * @return new array
67 */
68 public static Flag[] remove(final Flag[] flags, final Flag... remove) {
69 Flag[] flgs = flags;
70 for(int f = flgs.length - 1; f >= 0; f--) {
71 for(int r = remove.length - 1; r >= 0; r--) {
72 if(remove[r] == flgs[f]) {
73 flgs = Array.remove(flgs, f);
74 break;
75 }
76 }
77 }
78 return flgs;
79 }
80}

Callers 9

hasMethod · 0.95
hasMethod · 0.95
hasMethod · 0.95
hasMethod · 0.95
hasMethod · 0.95
hasMethod · 0.95
hasMethod · 0.95
hasMethod · 0.95
hasMethod · 0.95

Calls 1

removeMethod · 0.95

Tested by

no test coverage detected