returns a capacity that is sufficient to keep the map from being resized as long as it grows no larger than expectedsize and the load factor is > = its default 0.75 . concode_field_sep int MAX_POWER_OF_TWO concode_field_sep HashMap<K,V> newHashMapWithExpectedSize concode_elem_sep int checkNonnegative
int function ( int arg0 ) { if ( arg0 < 3 ) { checkNonnegative ( arg0 , "srini_string" ) ; return arg0 + 1 ; } if ( arg0 < MAX_POWER_OF_TWO ) { return ( int ) ( ( float ) arg0 / 0.75F + 1.0F ) ; } return Integer . MAX_VALUE ; }