Code example for BigInteger

Methods: intValue

0
	@Override 
	public void copyToValues(Category item, ContentValues values) {
		values.clear();
		BigInteger id = item.getId();
		if ( id != null )
			values.put(CategoriesContent.CATEGORY_ID, id.intValue());
 
		values.put(CategoriesContent.LOCALIZED_NAME, item.getLocalizedName());
		values.put(CategoriesContent.IDENTIFIER, item.getIdentifier());
		values.put(CategoriesContent.SELECTED, CategoriesContent.SELECTED_YES);
	} 
 
	@Override 
	public Uri getUri() {
		return CategoriesContent.CONTENT_URI; 
	} 
 
}