Code example for MatrixCursor

Methods: addRow

0
		 */ 
		static void addRowToCursor(MatrixCursor cursor, boolean isAuthorized) {
			Object[] values = new Object[COLUMN_NAMES.length];
			values[0] = new Integer(isAuthorized ? 1 : 0);
 
			cursor.addRow(values);
		} 
 
		private AuthorizationColumns() { 
		} 
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java