private void addInstance(EntryClass eclass){
  int idx=entryClasses.indexOf(eclass);
  if (idx < 0) {
    entryClasses.add(eclass);
    idx=entryClasses.size() - 1;
  }
  eclass=entryClasses.get(idx);
  eclass.setNumInstances(eclass.getNumInstances() + 1);
}

private void addInstance ( EntryClass eclass ) { int idx = entryClasses . indexOf ( eclass ) ; if ( idx < 0 ) { entryClasses . add ( eclass ) ; idx = entryClasses . size ( ) - 1 ; } eclass = entryClasses . get ( idx ) ; eclass . setNumInstances ( eclass . getNumInstances ( ) + 1 ) ; }
add an instance of the entryclass , and add the class to entryclasses if this is the first such instance .
