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

Public Member Functions

 DocumentDefinitionUsualSet (Collection<? extends DocumentDefinition > c, 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 DocumentDefinitionUsualSet.java.

Constructor & Destructor Documentation

◆ DocumentDefinitionUsualSet()

org.turro.financials.model.document.DocumentDefinitionUsualSet.DocumentDefinitionUsualSet ( Collection<? extends DocumentDefinition c,
String  path 
)

Definition at line 31 of file DocumentDefinitionUsualSet.java.

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

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