Integer function ( int arg0 ) { for ( int loc0 = 0 ; loc0 < cacheSize ; loc0 ++ ) { if ( cacheSlots . get ( loc0 ) != null && cacheSlots . get ( loc0 ) . getMemoryAddress ( ) == arg0 ) { return loc0 ; } } return null ; }
find if a memory address is in cache concode_field_sep int memoryAddress concode_elem_sep int cacheSize concode_elem_sep String data concode_elem_sep Cache instance concode_elem_sep int MEMORY_SIZE concode_elem_sep ArrayList<CacheSlot> cacheSlots concode_elem_sep int addCounter concode_field_sep int getMemoryAddress concode_elem_sep void resetCache concode_elem_sep void writeThrough concode_elem_sep void setData concode_elem_sep void updateData concode_elem_sep void updateData concode_elem_sep CacheSlot find concode_elem_sep void setMemoryAddress concode_elem_sep Cache getInstance concode_elem_sep String checkCache concode_elem_sep String checkCache concode_elem_sep void incrementAddCounter concode_elem_sep String getData concode_elem_sep String bringMemoryAddressToCache