Java TreeSet findSizedSubdirs(final String size, final TreeSet themeSubdirs)

Here you can find the source of findSizedSubdirs(final String size, final TreeSet themeSubdirs)

Description

find Sized Subdirs

License

Open Source License

Declaration

private static TreeSet<String> findSizedSubdirs(final String size, final TreeSet<String> themeSubdirs) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.TreeSet;

public class Main {
    private static TreeSet<String> findSizedSubdirs(final String size, final TreeSet<String> themeSubdirs) {
        final TreeSet<String> sizedSubDirs = new TreeSet<String>();
        for (String subdir : themeSubdirs) {
            if (subdir.startsWith(size)) {
                sizedSubDirs.add(subdir);
            }/* www.  ja  v a 2s . c o m*/
        }
        return sizedSubDirs;
    }
}

Related

  1. changeComparator(TreeSet set, Comparator cmp)
  2. concatenate(TreeSet in)
  3. convertSpanToSparseGrid(final int curIx, final int span, final TreeSet indexes)
  4. createTreeSet(Iterable c)
  5. cvtListToTreeSet(List list)
  6. getDockInsets(final TreeSet set)
  7. getTreeSet(Collection collection)
  8. getTreeSet(final Object o, final Class classElement)
  9. getVariance(TreeSet positions)