mResourcesMap = systemResourcesMap;
if (mResourcesMap != null) { Set<ResourceType> types = mResourcesMap.keySet(); if (types != null) { return types.toArray(new ResourceType[types.size()]); } } return null;
if (mResourcesMap != null) { List<ResourceItem> items = mResourcesMap.get(type); if (items != null) { return items.toArray(new ResourceItem[items.size()]); } } return null;
if (mResourcesMap != null) { List<ResourceItem> items = mResourcesMap.get(type); return (items != null && items.size() > 0); } return false;
return true;