private static final int tableSizeFor(int c){
  if (c <= 0)   return 1;
  int n=Integer.highestOneBit(c - 1) << 1;
  return (n >= MAXIMUM_CAPACITY) ? MAXIMUM_CAPACITY : n;
}

private static final int tableSizeFor ( int c ) { if ( c <= 0 ) return 1 ; int n = Integer . highestOneBit ( c - 1 ) << 1 ; return ( n >= MAXIMUM_CAPACITY ) ? MAXIMUM_CAPACITY : n ; }
returns a power of two table size for the given desired capacity .
