Code example for Cursor

Methods: getColumnIndexgetFloat

0
    } 
 
    public void checkCursorExtraRowFloat(float value) {
        String column = "extra_float";
        Cursor c = createCursorWithExtras(column, value);
        assertEquals("Extra column value", value, c.getFloat(c.getColumnIndex(column)));
    } 
 
    public void testCursorExtraRowLong() { 
        checkExtraRowLong(0xfeed0beefl); 
        checkExtraRowLong(-0xfeed0beefl); 
        checkExtraRowLong(0); 
        checkExtraRowLong(Long.MIN_VALUE);
        checkExtraRowLong(Long.MAX_VALUE);
    } 
 
    private void checkExtraRowLong(long value) {
        String column = "extra_long";
        Cursor c = createCursorWithExtras(column, value);
        assertEquals("Extra column value", value, c.getLong(c.getColumnIndex(column)));
Experience pair programming with AI  Get Codota for Java