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

Method sortVectorOfString

src/main/java/util/StringUtils.java:227–246  ·  view source on GitHub ↗
(Vector e)

Source from the content-addressed store, hash-verified

225 }
226
227 public static Vector sortVectorOfString(Vector e) {
228 Vector v = new Vector();
229 for(int count = 0; count < e.size(); count++) {
230 String s = (String) e.elementAt(count);
231 int i = 0;
232 for (i = 0; i < v.size(); i++) {
233 int c = s.compareTo((String) v.elementAt(i));
234 if (c < 0) {
235 v.insertElementAt(s, i);
236 break;
237 } else if (c == 0) {
238 break;
239 }
240 }
241 if (i >= v.size()) {
242 v.addElement(s);
243 }
244 }
245 return v;
246 }
247
248//#ifndef WMUC
249 public static String processError(Presence presence, int presenceType, ConferenceGroup group, MucContact muc) {

Callers 1

initCapsMethod · 0.95

Calls 2

addElementMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected