public GridHandleTable(int initCap,float loadFactor){
  this.loadFactor=loadFactor;
  spine=new int[initCap];
  next=new int[initCap];
  objs=new Object[initCap];
  spineEmpty=new int[initCap];
  nextEmpty=new int[initCap];
  Arrays.fill(spineEmpty,-1);
  Arrays.fill(nextEmpty,-1);
  threshold=(int)(initCap * loadFactor);
  clear();
}

public GridHandleTable ( int initCap , float loadFactor ) { this . loadFactor = loadFactor ; spine = new int [ initCap ] ; next = new int [ initCap ] ; objs = new Object [ initCap ] ; spineEmpty = new int [ initCap ] ; nextEmpty = new int [ initCap ] ; Arrays . fill ( spineEmpty , - 1 ) ; Arrays . fill ( nextEmpty , - 1 ) ; threshold = ( int ) ( initCap * loadFactor ) ; clear ( ) ; }
creates new handletable with given capacity and load factor .
