Code example for SparseArray

Methods: get, indexOfKey

0
    } 
     
    private static synchronized SQLTable getSQLTable(Uri uri) {
        int uriMatch = sUriMatcher.match(uri);
         
        if (sUriMatchToSQLTableMap.indexOfKey(uriMatch) >= 0)
            return sUriMatchToSQLTableMap.get(uriMatch);
         
        return null; 
    } 
     
    private synchronized SQLiteDatabase getDB() {
        return WordPress.wpStatsDB.getWritableDatabase(); 
    } 
 
}