◆ expand()
static String org.turro.financials.model.AccountFormat.expand |
( |
String |
a | ) |
|
|
static |
Definition at line 42 of file AccountFormat.java.
43 if((a ==
null) || (a.length() == 0))
45 StringBuilder text =
new StringBuilder(a.trim());
47 if((i = text.lastIndexOf(
".")) > -1) {
55 i = text.lastIndexOf(
"0");
61 return text.toString();
◆ isAccount()
static boolean org.turro.financials.model.AccountFormat.isAccount |
( |
String |
a | ) |
|
|
static |
Definition at line 64 of file AccountFormat.java.
65 if(a ==
null)
return false;
69 if((a.charAt(i) <
'0') || (a.charAt(i) >
'9'))
◆ isPartialAccount()
static boolean org.turro.financials.model.AccountFormat.isPartialAccount |
( |
String |
a | ) |
|
|
static |
Definition at line 74 of file AccountFormat.java.
75 if(a ==
null)
return false;
76 if(a.length() >= 10)
return false;
77 for(
int i = 0; i < a.length(); i++)
78 if(((a.charAt(i) <
'0') || (a.charAt(i) >
'9')) && !(a.charAt(i) ==
'.'))
◆ simplify()
static String org.turro.financials.model.AccountFormat.simplify |
( |
String |
a | ) |
|
|
static |
Definition at line 28 of file AccountFormat.java.
30 StringBuilder text =
new StringBuilder(a);
32 while(i < text.length() && text.charAt(i) ==
'0')
35 while(i > -1 && i < text.length() && text.charAt(i) ==
'0')
36 text.deleteCharAt(i--);
38 text.insert(i + 1,
'.');
39 return text.toString();
◆ trim()
static String org.turro.financials.model.AccountFormat.trim |
( |
String |
a | ) |
|
|
static |
Definition at line 83 of file AccountFormat.java.
84 StringBuilder text =
new StringBuilder(a);
85 while((text.length() > 0) && (text.charAt(text.length() - 1) ==
'0'))
86 text.deleteCharAt(text.length() - 1);
87 return text.toString();
◆ ACCOUNT_LENGTH
final int org.turro.financials.model.AccountFormat.ACCOUNT_LENGTH = 10 |
|
static |
The documentation for this class was generated from the following file: