retrieves the given lock at a provided offset . note this is not hashcode based . this method requires care and the knowledge of how many locks there are . this is useful when iterating over all locks concode_field_sep int MAXIMUM_CAPACITY concode_elem_sep int HASH_BITS concode_elem_sep ReadWriteLock[] locks concode_field_sep ReadWriteLock getLock concode_elem_sep void lockAll concode_elem_sep void unlockAll concode_elem_sep int tableSizeFor concode_elem_sep ReadWriteLock getLockFromHashCode concode_elem_sep int spread
ReadWriteLock function ( int arg0 ) { if ( arg0 >= locks . length ) { throw new ArrayIndexOutOfBoundsException ( ) ; } return locks [ arg0 ] ; }