BrightSide Workbench Full Report + Source Code
org.turro.financials.model.contract.ContractUsualSet Class Reference
Inheritance diagram for org.turro.financials.model.contract.ContractUsualSet:
Collaboration diagram for org.turro.financials.model.contract.ContractUsualSet:

Public Member Functions

 ContractUsualSet (Collection<? extends Contract > c, final boolean partial, String path)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 29 of file ContractUsualSet.java.

Constructor & Destructor Documentation

◆ ContractUsualSet()

org.turro.financials.model.contract.ContractUsualSet.ContractUsualSet ( Collection<? extends Contract c,
final boolean  partial,
String  path 
)

Definition at line 31 of file ContractUsualSet.java.

31  {
32  super(new UsualUsageComparator<Contract>(path) {
33  @Override
34  public String getIdentifier(Contract v) {
35  return "" + v.getId();
36  }
37 
38  @Override
39  public int compare(Contract o1, Contract o2) {
40  int r = super.compare(o1, o2);
41  if(r == 0) {
42  if(partial) {
43  r = o1.getPartialDescription().compareTo(o2.getPartialDescription());
44  } else {
45  r = o1.getFullDescription().compareTo(o2.getFullDescription());
46  }
47  }
48  return r;
49  }
50  });
51  if(c != null) addAll(c);
52  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: