Code example for Set

Methods: sizetoArray

0
    private static FastImmutableArraySet<String> getFastIntentCategories(Intent intent) {
        final Set<String> categories = intent.getCategories();
        if (categories == null) {
            return null; 
        } 
        return new FastImmutableArraySet<String>(categories.toArray(new String[categories.size()]));
    } 
 
    private void buildResolveList(Intent intent, FastImmutableArraySet<String> categories,
            boolean debug, boolean defaultOnly,
            String resolvedType, String scheme, F[] src, List<R> dest, int userId) {
        final String action = intent.getAction();
        final Uri data = intent.getData();
        final String packageName = intent.getPackage();
 
        final boolean excludingStopped = intent.isExcludingStopped();
 
        final Printer logPrinter;
        final PrintWriter logPrintWriter;
        if (debug) {