Code example for LruCache

Methods: evictAll

0
 
    public void updateCursor(Cursor c) {
        if(m_cursor != null && m_cursor != c) m_cursor.close();
        m_cursor = c;
        notifyDataSetChanged();
        m_objectPositions.evictAll();
    } 
	 
	public void close() { 
        if(m_cursor != null)
            m_cursor.close();
		m_cursor = null;
	} 
 
	@Override 
	public int getCount() { 
        if(m_cursor != null)
		    return m_cursor.getCount();
        else 
            return 0; 
Connect your IDE to all the code out there  Get Codota for Java