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

Method find

basex-core/src/main/java/org/basex/core/users/Users.java:165–171  ·  view source on GitHub ↗

Returns the names of all users that match the specified pattern. @param pattern glob pattern @return user list

(final Pattern pattern)

Source from the content-addressed store, hash-verified

163 * @return user list
164 */
165 public synchronized String[] find(final Pattern pattern) {
166 final StringList sl = new StringList();
167 for(final String name : users.keySet()) {
168 if(pattern.matcher(name).matches()) sl.add(name);
169 }
170 return sl.finish();
171 }
172
173 /**
174 * Returns a table with all users, or users from a specific database.

Callers 2

usersMethod · 0.45
runMethod · 0.45

Calls 4

addMethod · 0.95
matchesMethod · 0.45
matcherMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected