public Quote(int i){
  cusip=1000000000 - i;
  quoteId=i;
  quoteIdStr=Integer.toString(quoteId);
  dealerCode=cusip;
  String[] arr1={"moving","binding","non binding","not to exceed","storage","auto transport","mortgage"};
  quoteType=arr1[i % 7];
  uniqueQuoteType="quoteType" + Integer.toString(i);
  String[] arr2={"dealer1","dealer2","dealer3","dealer4","dealer5","dealer6","dealer7"};
  dealerPortfolio=arr2[i % 7];
  String[] arr3={"channel1","channel2","channel3","channel4","channel5","channel6","channel7"};
  channelName=arr3[i % 7];
  String[] arr4={"priceType1","priceType2","priceType3","priceType4","priceType5","priceType6","priceType7"};
  priceType=arr4[i % 7];
  price=(i / 10) * 8;
  lowerQty=i + 100;
  upperQty=i + 1000;
  if ((i % 12) == 0) {
    ytm=upperQty - lowerQty;
  }
 else {
    ytm=((upperQty - lowerQty) / 12) * (i % 12);
  }
  restrict.add(new Restricted(i));
}

public Quote ( int i ) { cusip = 1000000000 - i ; quoteId = i ; quoteIdStr = Integer . toString ( quoteId ) ; dealerCode = cusip ; String [ ] arr1 = { "moving" , "binding" , "non binding" , "not to exceed" , "storage" , "auto transport" , "mortgage" } ; quoteType = arr1 [ i % 7 ] ; uniqueQuoteType = "quoteType" + Integer . toString ( i ) ; String [ ] arr2 = { "dealer1" , "dealer2" , "dealer3" , "dealer4" , "dealer5" , "dealer6" , "dealer7" } ; dealerPortfolio = arr2 [ i % 7 ] ; String [ ] arr3 = { "channel1" , "channel2" , "channel3" , "channel4" , "channel5" , "channel6" , "channel7" } ; channelName = arr3 [ i % 7 ] ; String [ ] arr4 = { "priceType1" , "priceType2" , "priceType3" , "priceType4" , "priceType5" , "priceType6" , "priceType7" } ; priceType = arr4 [ i % 7 ] ; price = ( i / 10 ) * 8 ; lowerQty = i + 100 ; upperQty = i + 1000 ; if ( ( i % 12 ) == 0 ) { ytm = upperQty - lowerQty ; } else { ytm = ( ( upperQty - lowerQty ) / 12 ) * ( i % 12 ) ; } restrict . add ( new Restricted ( i ) ) ; }
creates a new instance of quote
