BrightSide Workbench Full Report + Source Code
SaleActionSet.java
Go to the documentation of this file.
1 package org.turro.crm.zul.sale;
2 
3 import java.util.Collection;
4 import java.util.TreeSet;
5 import org.turro.crm.entity.SaleAction;
6 import org.turro.crm.entity.SaleProspect;
7 import org.turro.crm.entity.VendorProspect;
8 
13 public class SaleActionSet extends TreeSet<SaleAction> {
14 
15  public SaleActionSet(SaleProspect saleProspect) {
16  super(new SaleActionComparator());
17  for(VendorProspect vp : saleProspect.getUpdatedVendorProspects()) {
18  addAll(vp.getUpdatedSaleActions());
19  }
20  }
21 
22  public SaleActionSet(Collection<? extends SaleAction> c) {
23  super(new SaleActionComparator());
24  addAll(c);
25  }
26 
27 }
Set< VendorProspect > getUpdatedVendorProspects()
SaleActionSet(SaleProspect saleProspect)
SaleActionSet(Collection<? extends SaleAction > c)