private boolean isOnList(Vector<String> list,String name){
  if (list.size() == 0)   return false;
  for (int i=0; i < list.size(); i++) {
    String listName=(String)list.get(i);
    if (name.endsWith(listName)) {
      return true;
    }
  }
  return false;
}

private boolean isOnList ( Vector < String > list , String name ) { if ( list . size ( ) == 0 ) return false ; for ( int i = 0 ; i < list . size ( ) ; i ++ ) { String listName = ( String ) list . get ( i ) ; if ( name . endsWith ( listName ) ) { return true ; } } return false ; }
internal helper method for checking if an entry is on either a vector or a hashtable . if it ' s in the vector but not the hashtable , then the hashtable will be updated to include the item , so that future lookups are faster .
