public Object [ ] getAllEntryValues ( ) { List < Object > values = new ArrayList < Object > ( ) ; FastSyncHashBucket hb = null ; FastSyncHashEntry e = null ; for ( int i = 0 ; i < xVar ; i ++ ) { for ( int j = 0 ; j < yVar ; j ++ ) { hb = mainTable [ i ] [ j ] ; synchronized ( hb ) { e = hb . root ; while ( e != null ) { values . add ( e . value ) ; e = e . next ; } } } } return values . toArray ( ) ; }
This routine returns a snapshot of all the values in the hash table .