public IdentityHashMap(int initialCapacity,float loadFactor){
  if (initialCapacity < 0)   throw new IllegalArgumentException("Illegal Initial Capacity: " + initialCapacity);
  if (loadFactor <= 0 || Float.isNaN(loadFactor))   throw new IllegalArgumentException("Illegal Load factor: " + loadFactor);
  if (initialCapacity == 0)   initialCapacity=1;
  this.loadFactor=loadFactor;
  table=new Entry[initialCapacity];
  threshold=(int)(initialCapacity * loadFactor);
}

public IdentityHashMap ( int initialCapacity , float loadFactor ) { if ( initialCapacity < 0 ) throw new IllegalArgumentException ( "Illegal Initial Capacity: " + initialCapacity ) ; if ( loadFactor <= 0 || Float . isNaN ( loadFactor ) ) throw new IllegalArgumentException ( "Illegal Load factor: " + loadFactor ) ; if ( initialCapacity == 0 ) initialCapacity = 1 ; this . loadFactor = loadFactor ; table = new Entry [ initialCapacity ] ; threshold = ( int ) ( initialCapacity * loadFactor ) ; }
constructs a new , empty map with the specified initial capacity and the specified load factor .
