@SuppressWarnings("unchecked") protected AbstractHashedMap(int initialCapacity,final float loadFactor){
  super();
  if (initialCapacity < 0) {
    throw new IllegalArgumentException("Initial capacity must be a non negative number");
  }
  if (loadFactor <= 0.0f || Float.isNaN(loadFactor)) {
    throw new IllegalArgumentException("Load factor must be greater than 0");
  }
  this.loadFactor=loadFactor;
  initialCapacity=calculateNewCapacity(initialCapacity);
  this.threshold=calculateThreshold(initialCapacity,loadFactor);
  this.data=new HashEntry[initialCapacity];
  init();
}

@ SuppressWarnings ( "unchecked" ) protected AbstractHashedMap ( int initialCapacity , final float loadFactor ) { super ( ) ; if ( initialCapacity < 0 ) { throw new IllegalArgumentException ( "Initial capacity must be a non negative number" ) ; } if ( loadFactor <= 0.0f || Float . isNaN ( loadFactor ) ) { throw new IllegalArgumentException ( "Load factor must be greater than 0" ) ; } this . loadFactor = loadFactor ; initialCapacity = calculateNewCapacity ( initialCapacity ) ; this . threshold = calculateThreshold ( initialCapacity , loadFactor ) ; this . data = new HashEntry [ initialCapacity ] ; init ( ) ; }
constructs a new , empty map with the specified initial capacity and load factor .
