Skip to content

Commit 94e2be8

Browse files
Added comments
1 parent 7d164e4 commit 94e2be8

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/main/java/com/diffblue/corebanking/compliance/rules/ComplianceRule.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ public abstract class ComplianceRule {
1010
private final List<Account> currentCompliantAccounts = new ArrayList<Account>();
1111

1212
/**
13-
*
14-
* @param account
13+
* Adds the passed account to the list of non-compliant accounts.
14+
* @param account The non-compliant account.
1515
*/
1616
public void addToNonCompliantAccounts(Account account) {
1717
if (currentNonCompliantAccounts.contains(account)) {
@@ -21,8 +21,8 @@ public void addToNonCompliantAccounts(Account account) {
2121
}
2222

2323
/**
24-
*
25-
* @param account
24+
* Adds the passed account to the list of compliant accounts.
25+
* @param account The compliant account.
2626
*/
2727
public void addToCompliantAccounts(Account account) {
2828
if (currentCompliantAccounts.contains(account)) {
@@ -32,16 +32,25 @@ public void addToCompliantAccounts(Account account) {
3232
}
3333

3434
/**
35-
*
36-
* @return
35+
* Makes sure the passed account is not in any compliance list.
36+
* @param account The account to remove from all compliance lists.
37+
*/
38+
public void removeFromComplianceLists(Account account) {
39+
this.currentNonCompliantAccounts.remove(account);
40+
this.currentCompliantAccounts.remove(account);
41+
}
42+
43+
/**
44+
* Returns the list of non-compliant accounts.
45+
* @return The list of non-compliant accounts.
3746
*/
3847
public List<Account> getNonCompliantAccounts() {
3948
return this.currentNonCompliantAccounts;
4049
}
4150

4251
/**
43-
*
44-
* @return
52+
* Returns the list of compliant accounts.
53+
* @return The list of compliant accounts.
4554
*/
4655
public List<Account> getCompliantAccounts() {
4756
return this.currentCompliantAccounts;
@@ -59,13 +68,4 @@ public void purgeAccounts() {
5968
this.currentNonCompliantAccounts.clear();
6069
this.currentCompliantAccounts.clear();
6170
}
62-
63-
/**
64-
*
65-
* @param account
66-
*/
67-
public void removeFromComplianceLists(Account account) {
68-
this.currentNonCompliantAccounts.remove(account);
69-
this.currentCompliantAccounts.remove(account);
70-
}
7171
}

0 commit comments

Comments
 (0)