Code example for Set

Methods: size, toArray

0
		super.bulkInsert(item);
	} 
 
	private String[] getKeys(Map<String, String> map) {
		Set<String> keys = map.keySet();
		String[] val = new String[keys.size()];
		keys.toArray(val);
		return val;
	} 
 
	@Override 
	public void copyToValues(Locale item, ContentValues values) {
		values.clear();
		values.put(LocalesContent.LOCALE_ID, item.id);
		values.put(LocalesContent.LOCALIZED_NAME, item.name);
	} 
 
	@Override 
	public Uri getUri() {
		return LocalesContent.CONTENT_URI; 
	}