Code example for MatrixCursor

0
		 * Instanciate a new matrix cursor 
		 *  
		 * @return 
		 */ 
		static MatrixCursor newCursor() {
			return new MatrixCursor(COLUMN_NAMES);
		} 
 
		/** 
		 * Add a row to the given cursor 
		 *  
		 * @param cursor 
		 *            The cursor to update 
		 * @param isAuthorized 
		 *            The result of the authorization 
		 */ 
		static void addRowToCursor(MatrixCursor cursor, boolean isAuthorized) {
			Object[] values = new Object[COLUMN_NAMES.length];
			values[0] = new Integer(isAuthorized ? 1 : 0);
 
			cursor.addRow(values);