BrightSide Workbench Full Report + Source Code
org.turro.financials.report.ReportColumn Class Reference
Inheritance diagram for org.turro.financials.report.ReportColumn:
Collaboration diagram for org.turro.financials.report.ReportColumn:

Public Member Functions

 ReportColumn (int order, String name, String regexp[])
 
int getOrder ()
 
String getName ()
 
String[] getRegexp ()
 
boolean check (RegisterEntry e)
 
int compareTo (ReportColumn o)
 
int hashCode ()
 

Detailed Description

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

Definition at line 29 of file ReportColumn.java.

Constructor & Destructor Documentation

◆ ReportColumn()

org.turro.financials.report.ReportColumn.ReportColumn ( int  order,
String  name,
String  regexp[] 
)

Definition at line 35 of file ReportColumn.java.

35  {
36  this.order = order;
37  this.name = name;
38  this.regexp = regexp;
39  }

Member Function Documentation

◆ check()

boolean org.turro.financials.report.ReportColumn.check ( RegisterEntry  e)

Definition at line 53 of file ReportColumn.java.

53  {
54  for(String rg : regexp) {
55  if(e.getAccount().getId().matches(rg)) {
56  return true;
57  }
58  }
59  return false;
60  }
Here is the call graph for this function:

◆ compareTo()

int org.turro.financials.report.ReportColumn.compareTo ( ReportColumn  o)

Definition at line 63 of file ReportColumn.java.

63  {
64  int result = CompareUtil.compare(order, o.getOrder());
65  if(result == 0) {
66  result = CompareUtil.compare(name, o.getName());
67  }
68  return result;
69  }
Here is the call graph for this function:

◆ getName()

String org.turro.financials.report.ReportColumn.getName ( )

Definition at line 45 of file ReportColumn.java.

45  {
46  return name;
47  }
Here is the caller graph for this function:

◆ getOrder()

int org.turro.financials.report.ReportColumn.getOrder ( )

Definition at line 41 of file ReportColumn.java.

41  {
42  return order;
43  }
Here is the caller graph for this function:

◆ getRegexp()

String [] org.turro.financials.report.ReportColumn.getRegexp ( )

Definition at line 49 of file ReportColumn.java.

49  {
50  return regexp;
51  }

◆ hashCode()

int org.turro.financials.report.ReportColumn.hashCode ( )

Definition at line 72 of file ReportColumn.java.

72  {
73  return Objects.hash(order, name, regexp);
74  }

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