Code example for HashSet

Methods: add, isEmpty

0
    } 
 
    private static final HashSet<CopyHandler> KNOWN_COPY_HANDLERS = new HashSet<CopyHandler>();
 
    private static void setupKnownCopyHandlers() { 
        if (!KNOWN_COPY_HANDLERS.isEmpty())
            return; 
 
        KNOWN_COPY_HANDLERS.add(new CopyHandler(
                "com.google.android.apps.docs", 
                "com.google.android.apps.docs.app.SendTextToClipboardActivity")); 
 
        KNOWN_COPY_HANDLERS.add(new CopyHandler(
                "com.aokp.romcontrol", 
                "com.aokp.romcontrol.ShareToClipboard")); 
    } 
 
    private IntentAdapter mAdapter;
    private PackageManager mPackageManager;
    HashMap<ComponentName, Intent> mActivities = new HashMap<ComponentName, Intent>();