Code example for HashSet

Methods: contains

0
            return false; 
        } 
 
        public boolean isEnabled(int position) {
            DeviceAdminInfo info = mAvailableAdmins.get(position);
            if (mActiveAdmins.contains(info.getComponent())
                    && info.getPackageName().equals(mDeviceOwnerPkg)) {
                return false; 
            } else { 
                return true; 
            } 
        } 
 
        public View getView(int position, View convertView, ViewGroup parent) {
            View v;
            if (convertView == null) {
                v = newView(parent);
            } else { 
                v = convertView;
            } 
            bindView(v, position);