BrightSide Workbench Full Report + Source Code
org.turro.financials.treasury.settlement.SettlementEntry Class Reference
Inheritance diagram for org.turro.financials.treasury.settlement.SettlementEntry:
Collaboration diagram for org.turro.financials.treasury.settlement.SettlementEntry:

Public Member Functions

 SettlementEntry (String account, String name)
 
String getAccount ()
 
double getAmount ()
 
void setAmount (double amount)
 
boolean isChecked ()
 
void setChecked (boolean checked)
 
boolean isCreditor ()
 
boolean isCreditorIRPF ()
 
boolean isCreditorVAT ()
 
boolean isDebtor ()
 
String getName ()
 
int compareTo (SettlementEntry o)
 

Detailed Description

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

Definition at line 27 of file SettlementEntry.java.

Constructor & Destructor Documentation

◆ SettlementEntry()

org.turro.financials.treasury.settlement.SettlementEntry.SettlementEntry ( String  account,
String  name 
)

Definition at line 33 of file SettlementEntry.java.

33  {
34  this.account = account;
35  this.name = name;
36  }

Member Function Documentation

◆ compareTo()

int org.turro.financials.treasury.settlement.SettlementEntry.compareTo ( SettlementEntry  o)

Definition at line 80 of file SettlementEntry.java.

80  {
81  return CompareUtil.compare(account, o.account);
82  }

◆ getAccount()

String org.turro.financials.treasury.settlement.SettlementEntry.getAccount ( )

Definition at line 38 of file SettlementEntry.java.

38  {
39  return account;
40  }
Here is the caller graph for this function:

◆ getAmount()

double org.turro.financials.treasury.settlement.SettlementEntry.getAmount ( )

Definition at line 42 of file SettlementEntry.java.

42  {
43  return Zero.near(amount, 2) ? 0.0 : amount;
44  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getName()

String org.turro.financials.treasury.settlement.SettlementEntry.getName ( )

Definition at line 75 of file SettlementEntry.java.

75  {
76  return name;
77  }

◆ isChecked()

boolean org.turro.financials.treasury.settlement.SettlementEntry.isChecked ( )

Definition at line 50 of file SettlementEntry.java.

50  {
51  return checked;
52  }
Here is the caller graph for this function:

◆ isCreditor()

boolean org.turro.financials.treasury.settlement.SettlementEntry.isCreditor ( )

Definition at line 58 of file SettlementEntry.java.

58  {
59  return account.matches(SettlementSet.CREDITOR_EXP.replaceAll("\\%", "[0-9]*"));
60  }

◆ isCreditorIRPF()

boolean org.turro.financials.treasury.settlement.SettlementEntry.isCreditorIRPF ( )

Definition at line 62 of file SettlementEntry.java.

62  {
63  return account.matches(SettlementSet.CREDITOR_EXP.replaceAll("\\%", "1[1-9][0-9]*"));
64  }
Here is the caller graph for this function:

◆ isCreditorVAT()

boolean org.turro.financials.treasury.settlement.SettlementEntry.isCreditorVAT ( )

Definition at line 66 of file SettlementEntry.java.

66  {
67  return account.matches(SettlementSet.CREDITOR_EXP.replaceAll("\\%", "0[0-9]*"));
68  }
Here is the caller graph for this function:

◆ isDebtor()

boolean org.turro.financials.treasury.settlement.SettlementEntry.isDebtor ( )

Definition at line 70 of file SettlementEntry.java.

70  {
71  return account.matches(SettlementSet.DEBTOR_EXP.replaceAll("\\%", "[0-9]*")) ||
72  account.matches(SettlementSet.ON_ACCOUNT_EXP.replaceAll("\\%", "[0-9]*"));
73  }
Here is the caller graph for this function:

◆ setAmount()

void org.turro.financials.treasury.settlement.SettlementEntry.setAmount ( double  amount)

Definition at line 46 of file SettlementEntry.java.

46  {
47  this.amount = amount;
48  }

◆ setChecked()

void org.turro.financials.treasury.settlement.SettlementEntry.setChecked ( boolean  checked)

Definition at line 54 of file SettlementEntry.java.

54  {
55  this.checked = checked;
56  }

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