List of utility methods to do TreeSet
void | addSplits(TreeSet add Splits if (splitBits == 0) return; if (splitBits < 0 || splitBits > 16) throw new IllegalArgumentException("Illegal nunmber of split bits"); final int splitStep = 1 << (16 - splitBits); for (int i = splitStep; i <= 0xFFFF; i += splitStep) { byte bb[] = Arrays.copyOf(prefix, prefix.length + 2); bb[prefix.length] = (byte) ((i >> 8) & 0xff); ... |
TreeSet | buildTreeSet(Collection build Tree Set return new TreeSet<T>(elements); |
TreeSet | changeComparator(TreeSet Clears the initial set, and creates a new one with same contents and has the specified comparator. TreeSet<T> ret = new TreeSet<T>(cmp); ret.addAll(set); set.clear(); return ret; |
String | concatenate(TreeSet concatenate StringBuffer buffer = new StringBuffer(); for (String element : in) { buffer.append(element.trim().replaceAll(CONCATENATION_TOKEN + "", CONCATENATION_SUBSTITUTE + "")); buffer.append(CONCATENATION_TOKEN); String result = buffer.toString(); return result; |
int | convertSpanToSparseGrid(final int curIx, final int span, final TreeSet Spanning is specified in the uncompressed grid number. final int lastIx = curIx + span; int retSpan = 1; for (final Integer ix : indexes) { if (ix <= curIx) { continue; if (ix >= lastIx) { break; ... |
TreeSet | createTreeSet(Iterable extends T> c) create Tree Set return createTreeSet(null, c);
|
TreeSet | cvtListToTreeSet(List list) cvt List To Tree Set TreeSet treeSet = new TreeSet(); if (treeSet != null) { Iterator iter = list.iterator(); while (iter.hasNext()) { treeSet.add(iter.next()); return treeSet; ... |
TreeSet | findSizedSubdirs(final String size, final TreeSet find Sized Subdirs final TreeSet<String> sizedSubDirs = new TreeSet<String>(); for (String subdir : themeSubdirs) { if (subdir.startsWith(size)) { sizedSubDirs.add(subdir); return sizedSubDirs; |
int | getDockInsets(final TreeSet get Dock Insets int c = 0; for (final Integer i : set) { if (i < -MAX_GRID) { c++; } else { break; return c; |
Set | getTreeSet(Collection extends E> collection) get Tree Set return new TreeSet<E>(collection); |